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

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..0bea321bee93e56f260ad2e75f57b0d336c075d9 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"
@@ -230,6 +231,7 @@ class ExtensionGCMAppHandlerTest : public testing::Test {
// Overridden from test::Test:
void SetUp() override {
+ shell_context_ = content::ShellContext::Create();
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
// Make BrowserThread work in unittest.
@@ -397,6 +399,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