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

Unified Diff: chrome/browser/search_engines/template_url_service_factory.cc

Issue 2479113002: Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Fixed after rebase on master Created 4 years 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/search_engines/template_url_service_factory.cc
diff --git a/chrome/browser/search_engines/template_url_service_factory.cc b/chrome/browser/search_engines/template_url_service_factory.cc
index 464441bce1f5adef08af56033d8ee276be2ceedc..6446d0a2f650c148c38615c7f47368b4b7c2b361 100644
--- a/chrome/browser/search_engines/template_url_service_factory.cc
+++ b/chrome/browser/search_engines/template_url_service_factory.cc
@@ -23,6 +23,7 @@
#include "components/search_engines/default_search_manager.h"
#include "components/search_engines/search_engines_pref_names.h"
#include "components/search_engines/template_url_service.h"
+#include "extensions/browser/extension_pref_value_map_factory.h"
#if defined(ENABLE_RLZ)
#include "components/rlz/rlz_tracker.h"
@@ -57,7 +58,8 @@ std::unique_ptr<KeyedService> TemplateURLServiceFactory::BuildInstanceFor(
std::unique_ptr<TemplateURLServiceClient>(
new ChromeTemplateURLServiceClient(
HistoryServiceFactory::GetForProfile(
- profile, ServiceAccessType::EXPLICIT_ACCESS))),
+ profile, ServiceAccessType::EXPLICIT_ACCESS),
+ ExtensionPrefValueMapFactory::GetForBrowserContext(context))),
GoogleURLTrackerFactory::GetForProfile(profile),
g_browser_process->rappor_service(), dsp_change_callback);
}

Powered by Google App Engine
This is Rietveld 408576698