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

Unified Diff: chrome/browser/extensions/extension_browsertest.cc

Issue 156843004: Remove ExtensionService::extension_prefs() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: additional cleanup Created 6 years, 10 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/extension_browsertest.cc
diff --git a/chrome/browser/extensions/extension_browsertest.cc b/chrome/browser/extensions/extension_browsertest.cc
index ca731b3450318f15f5cde6bc7c4ea7cc5945ffa6..12da22faf5303acee3e91e51717ddbe47a7e1581 100644
--- a/chrome/browser/extensions/extension_browsertest.cc
+++ b/chrome/browser/extensions/extension_browsertest.cc
@@ -41,6 +41,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/test/browser_test_utils.h"
+#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_system.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension_set.h"
@@ -170,7 +171,7 @@ const Extension* ExtensionBrowserTest::LoadExtensionWithFlags(
// The call to OnExtensionInstalled ensures the other extension prefs
// are set up with the defaults.
- service->extension_prefs()->OnExtensionInstalled(
+ extensions::ExtensionPrefs::Get(profile())->OnExtensionInstalled(
extension,
Extension::ENABLED,
false,

Powered by Google App Engine
This is Rietveld 408576698