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

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

Issue 671763002: Extract ProcessManager from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 2 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/browsertest_util.cc
diff --git a/chrome/browser/extensions/browsertest_util.cc b/chrome/browser/extensions/browsertest_util.cc
index 21185f8192bdc48d7507a99225b0c02ba3f425c1..ceed312d076b3c9ffb2ad6b3e11f276998ecf324 100644
--- a/chrome/browser/extensions/browsertest_util.cc
+++ b/chrome/browser/extensions/browsertest_util.cc
@@ -7,7 +7,6 @@
#include "chrome/browser/profiles/profile.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/browser/extension_host.h"
-#include "extensions/browser/extension_system.h"
#include "extensions/browser/process_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -18,7 +17,7 @@ std::string ExecuteScriptInBackgroundPage(Profile* profile,
const std::string& extension_id,
const std::string& script) {
extensions::ProcessManager* manager =
- extensions::ExtensionSystem::Get(profile)->process_manager();
+ extensions::ProcessManager::Get(profile);
extensions::ExtensionHost* host =
manager->GetBackgroundHostForExtension(extension_id);
if (host == NULL) {
@@ -38,7 +37,7 @@ bool ExecuteScriptInBackgroundPageNoWait(Profile* profile,
const std::string& extension_id,
const std::string& script) {
extensions::ProcessManager* manager =
- extensions::ExtensionSystem::Get(profile)->process_manager();
+ extensions::ProcessManager::Get(profile);
extensions::ExtensionHost* host =
manager->GetBackgroundHostForExtension(extension_id);
if (host == NULL) {

Powered by Google App Engine
This is Rietveld 408576698