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

Unified Diff: chrome/browser/search_engines/default_search_manager.h

Issue 237653002: Import policy data into default search dictionary pref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits and rebase on ToT Created 6 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 | « no previous file | chrome/browser/search_engines/default_search_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/default_search_manager.h
diff --git a/chrome/browser/search_engines/default_search_manager.h b/chrome/browser/search_engines/default_search_manager.h
index 39243f92d7df3f10bacdac247c8c6ae5835502e6..9035564ed0fbef0028a8b0532eabcfcf844d7229 100644
--- a/chrome/browser/search_engines/default_search_manager.h
+++ b/chrome/browser/search_engines/default_search_manager.h
@@ -7,11 +7,16 @@
#include "base/macros.h"
+namespace base {
+class DictionaryValue;
+}
+
namespace user_prefs {
class PrefRegistrySyncable;
}
class PrefService;
+class PrefValueMap;
struct TemplateURLData;
// DefaultSearchManager handles the loading and writing of the user's default
@@ -48,6 +53,7 @@ class DefaultSearchManager {
static const char kAlternateURLs[];
static const char kSearchTermsReplacementKey[];
static const char kCreatedByPolicy[];
+ static const char kDisabledByPolicy[];
explicit DefaultSearchManager(PrefService* pref_service);
~DefaultSearchManager();
@@ -55,6 +61,10 @@ class DefaultSearchManager {
// Register prefs needed for tracking the default search provider.
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
+ // Save default search provider pref values into the map provided.
+ static void AddPrefValueToMap(base::DictionaryValue* value,
+ PrefValueMap* pref_value_map);
+
// Read default search provider data from |pref_service_|.
bool GetDefaultSearchEngine(TemplateURLData* url);
« no previous file with comments | « no previous file | chrome/browser/search_engines/default_search_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698