Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: android_webview/browser/aw_pref_store.cc

Issue 1881253003: Create a PrefStore in support of Blimp metrics collection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix conflict with ptr migration work. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/browser/aw_pref_store.h ('k') | android_webview/native/aw_autofill_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_pref_store.cc
diff --git a/android_webview/browser/aw_pref_store.cc b/android_webview/browser/aw_pref_store.cc
deleted file mode 100644
index b245656b8c7f034d24e8644e50e0940e90652280..0000000000000000000000000000000000000000
--- a/android_webview/browser/aw_pref_store.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "android_webview/browser/aw_pref_store.h"
-
-#include <memory>
-#include <utility>
-
-#include "base/values.h"
-
-AwPrefStore::AwPrefStore() {}
-
-AwPrefStore::~AwPrefStore() {}
-
-bool AwPrefStore::GetValue(const std::string& key,
- const base::Value** value) const {
- return prefs_.GetValue(key, value);
-}
-
-bool AwPrefStore::GetMutableValue(const std::string& key,
- base::Value** value) {
- return prefs_.GetValue(key, value);
-}
-
-void AwPrefStore::AddObserver(PrefStore::Observer* observer) {
- observers_.AddObserver(observer);
-}
-
-void AwPrefStore::RemoveObserver(PrefStore::Observer* observer) {
- observers_.RemoveObserver(observer);
-}
-
-bool AwPrefStore::HasObservers() const {
- return observers_.might_have_observers();
-}
-
-bool AwPrefStore::IsInitializationComplete() const {
- return true;
-}
-
-void AwPrefStore::SetValue(const std::string& key,
- std::unique_ptr<base::Value> value,
- uint32_t flags) {
- DCHECK(value);
- if (prefs_.SetValue(key, std::move(value)))
- ReportValueChanged(key, flags);
-}
-
-void AwPrefStore::SetValueSilently(const std::string& key,
- std::unique_ptr<base::Value> value,
- uint32_t flags) {
- prefs_.SetValue(key, std::move(value));
-}
-
-void AwPrefStore::RemoveValue(const std::string& key, uint32_t flags) {
- if (prefs_.RemoveValue(key))
- ReportValueChanged(key, flags);
-}
-
-bool AwPrefStore::ReadOnly() const {
- return false;
-}
-
-PersistentPrefStore::PrefReadError AwPrefStore::GetReadError() const {
- return PersistentPrefStore::PREF_READ_ERROR_NONE;
-}
-
-PersistentPrefStore::PrefReadError AwPrefStore::ReadPrefs() {
- return PersistentPrefStore::PREF_READ_ERROR_NONE;
-}
-
-void AwPrefStore::ReadPrefsAsync(ReadErrorDelegate* error_delegate_raw) {
-}
-
-void AwPrefStore::ReportValueChanged(const std::string& key, uint32_t flags) {
- FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
-}
« no previous file with comments | « android_webview/browser/aw_pref_store.h ('k') | android_webview/native/aw_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698