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

Unified Diff: chrome/browser/ui/panels/base_panel_browser_test.cc

Issue 349073004: Cleanup: Remove deprecated Profile::GetExtensionService(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 6 years, 6 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/ui/panels/base_panel_browser_test.cc
diff --git a/chrome/browser/ui/panels/base_panel_browser_test.cc b/chrome/browser/ui/panels/base_panel_browser_test.cc
index d9fac02a95c2cb9102bba73d9d4e16445ce292f0..29d4176e9c574cf1b2946f6dc56bce32657e1a5b 100644
--- a/chrome/browser/ui/panels/base_panel_browser_test.cc
+++ b/chrome/browser/ui/panels/base_panel_browser_test.cc
@@ -30,12 +30,12 @@
#include "content/public/common/url_constants.h"
#include "content/public/test/web_contents_tester.h"
#include "extensions/browser/extension_prefs.h"
+#include "extensions/browser/extension_system.h"
#include "extensions/browser/install_flag.h"
#include "extensions/common/manifest_constants.h"
#include "sync/api/string_ordinal.h"
#if defined(OS_LINUX)
-#include "chrome/browser/ui/browser_window.h"
#include "ui/base/x/x11_util.h"
#endif
@@ -565,10 +565,11 @@ scoped_refptr<Extension> BasePanelBrowserTest::CreateExtension(
full_path, location, *input_value, Extension::NO_FLAGS, &error);
EXPECT_TRUE(extension.get());
EXPECT_STREQ("", error.c_str());
- browser()->profile()->GetExtensionService()->OnExtensionInstalled(
- extension.get(),
- syncer::StringOrdinal(),
- extensions::kInstallFlagInstallImmediately);
+ extensions::ExtensionSystem::Get(
+ browser()->profile())->extension_service()->OnExtensionInstalled(
+ extension.get(),
+ syncer::StringOrdinal(),
+ extensions::kInstallFlagInstallImmediately);
return extension;
}

Powered by Google App Engine
This is Rietveld 408576698