mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 93.0.4577.0 (#902210)
This commit is contained in:
@@ -107,6 +107,12 @@ void CefPrefStore::CommitPendingWrite(
|
||||
std::move(synchronous_done_callback));
|
||||
}
|
||||
|
||||
void CefPrefStore::CommitPendingWriteSynchronously() {
|
||||
// This method was added for one very specific use case and is intentionally
|
||||
// not implemented for other pref stores.
|
||||
NOTREACHED();
|
||||
}
|
||||
|
||||
void CefPrefStore::SchedulePendingLossyWrites() {}
|
||||
|
||||
void CefPrefStore::ClearMutableValues() {
|
||||
@@ -155,7 +161,11 @@ bool CefPrefStore::GetString(const std::string& key, std::string* value) const {
|
||||
if (!prefs_.GetValue(key, &stored_value) || !stored_value)
|
||||
return false;
|
||||
|
||||
return stored_value->GetAsString(value);
|
||||
if (value && stored_value->is_string()) {
|
||||
*value = stored_value->GetString();
|
||||
return true;
|
||||
}
|
||||
return stored_value->is_string();
|
||||
}
|
||||
|
||||
bool CefPrefStore::GetInteger(const std::string& key, int* value) const {
|
||||
@@ -163,7 +173,11 @@ bool CefPrefStore::GetInteger(const std::string& key, int* value) const {
|
||||
if (!prefs_.GetValue(key, &stored_value) || !stored_value)
|
||||
return false;
|
||||
|
||||
return stored_value->GetAsInteger(value);
|
||||
if (value && stored_value->is_int()) {
|
||||
*value = stored_value->GetInt();
|
||||
return true;
|
||||
}
|
||||
return stored_value->is_int();
|
||||
}
|
||||
|
||||
bool CefPrefStore::GetBoolean(const std::string& key, bool* value) const {
|
||||
@@ -171,7 +185,11 @@ bool CefPrefStore::GetBoolean(const std::string& key, bool* value) const {
|
||||
if (!prefs_.GetValue(key, &stored_value) || !stored_value)
|
||||
return false;
|
||||
|
||||
return stored_value->GetAsBoolean(value);
|
||||
if (value && stored_value->is_bool()) {
|
||||
*value = stored_value->GetBool();
|
||||
return true;
|
||||
}
|
||||
return stored_value->is_bool();
|
||||
}
|
||||
|
||||
void CefPrefStore::SetBlockAsyncRead(bool block_async_read) {
|
||||
|
Reference in New Issue
Block a user