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

Unified Diff: chrome/browser/prefs/preferences_service.h

Issue 2778733003: Pref service: delete old implementation (Closed)
Patch Set: Fix missed merge Created 3 years, 9 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 | « chrome/browser/prefs/preferences_manifest.json ('k') | chrome/browser/prefs/preferences_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/preferences_service.h
diff --git a/chrome/browser/prefs/preferences_service.h b/chrome/browser/prefs/preferences_service.h
deleted file mode 100644
index eb837615a80eb1320179d63982d21e3df1369a69..0000000000000000000000000000000000000000
--- a/chrome/browser/prefs/preferences_service.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2016 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.
-
-#ifndef CHROME_BROWSER_PREFS_PREFERENCES_SERVICE_H_
-#define CHROME_BROWSER_PREFS_PREFERENCES_SERVICE_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "services/preferences/public/interfaces/preferences.mojom.h"
-
-namespace test {
-class PreferencesServiceTest;
-}
-
-class PrefChangeRegistrar;
-class PrefService;
-class Profile;
-
-// Implementation of prefs::mojom::PreferencesService that accepts a single
-// prefs::mojom::PreferencesServiceClient.
-//
-// After calling AddObserver PreferencesService will begin observing changes to
-// the requested preferences, notifying the client of all changes.
-class PreferencesService : public prefs::mojom::PreferencesService {
- public:
- PreferencesService(prefs::mojom::PreferencesServiceClientPtr client,
- Profile* profile);
- ~PreferencesService() override;
-
- private:
- friend class test::PreferencesServiceTest;
-
- // PrefChangeRegistrar::NamedChangeCallback:
- void PreferenceChanged(const std::string& preference_name);
-
- // mojom::PreferencesService:
- void SetPreferences(
- std::unique_ptr<base::DictionaryValue> preferences) override;
- void Subscribe(const std::vector<std::string>& preferences) override;
-
- // Tracks the desired preferences, and listens for updates.
- std::unique_ptr<PrefChangeRegistrar> preferences_change_registrar_;
- prefs::mojom::PreferencesServiceClientPtr client_;
- PrefService* service_;
-
- // Used to prevent notifying |client_| of changes caused by it calling
- // SetPreferences.
- bool setting_preferences_;
-
- DISALLOW_COPY_AND_ASSIGN(PreferencesService);
-};
-
-#endif // CHROME_BROWSER_PREFS_PREFERENCES_SERVICE_H_
« no previous file with comments | « chrome/browser/prefs/preferences_manifest.json ('k') | chrome/browser/prefs/preferences_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698