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

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

Issue 2112543002: Convert UtilityProcessHost to bootstrap Mojo Channel using the Shell connection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@p9x
Patch Set: . Created 4 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/extensions/extension_gcm_app_handler_unittest.cc
diff --git a/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc b/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc
index a04d0535df18bdc0b204a1b8c6ec43640192164d..36ba74e19611813f16a14f0b0ea8101afc7fd3c2 100644
--- a/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc
+++ b/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc
@@ -45,6 +45,7 @@
#include "components/signin/core/browser/signin_manager.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/shell_context.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "content/public/test/test_utils.h"
#include "extensions/browser/extension_system.h"
@@ -240,6 +241,8 @@ class ExtensionGCMAppHandlerTest : public testing::Test {
in_process_utility_thread_helper_.reset(
new content::InProcessUtilityThreadHelper);
+ shell_context_ = content::ShellContext::Create();
+
// This is needed to create extension service under CrOS.
#if defined(OS_CHROMEOS)
test_user_manager_.reset(new chromeos::ScopedTestUserManager());
@@ -397,6 +400,7 @@ class ExtensionGCMAppHandlerTest : public testing::Test {
std::unique_ptr<content::InProcessUtilityThreadHelper>
in_process_utility_thread_helper_;
std::unique_ptr<TestingProfile> profile_;
+ std::unique_ptr<content::ShellContext> shell_context_;
ExtensionService* extension_service_; // Not owned.
base::ScopedTempDir temp_dir_;

Powered by Google App Engine
This is Rietveld 408576698