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

Unified Diff: chrome/browser/extensions/api/settings_private/settings_private_delegate.h

Issue 1061613002: chrome.settingsPrivate: Implement onPrefsChanged event handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to Steven's comments + add an APItest Created 5 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
Index: chrome/browser/extensions/api/settings_private/settings_private_delegate.h
diff --git a/chrome/browser/extensions/api/settings_private/settings_private_delegate.h b/chrome/browser/extensions/api/settings_private/settings_private_delegate.h
index 2c608a46f827d056347151839f880e88df1ec251..96405f31696c2ea1cd4a79034a167ed5668f9920 100644
--- a/chrome/browser/extensions/api/settings_private/settings_private_delegate.h
+++ b/chrome/browser/extensions/api/settings_private/settings_private_delegate.h
@@ -11,7 +11,6 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/settings_private.h"
#include "components/keyed_service/core/keyed_service.h"
#include "extensions/browser/extension_function.h"
@@ -43,11 +42,10 @@ class SettingsPrivateDelegate : public KeyedService {
// Gets the values of all whitelisted prefs.
virtual scoped_ptr<base::Value> GetAllPrefs();
- private:
- PrefService* FindServiceForPref(const std::string& pref_name);
-
+ protected:
Profile* profile_; // weak; not owned by us
+ private:
DISALLOW_COPY_AND_ASSIGN(SettingsPrivateDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698