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

Side by Side Diff: chrome/test/base/testing_browser_process.cc

Issue 494033002: Move AppWindow to extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded include in chrome_shell_delegate.cc Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/base/testing_browser_process.h" 5 #include "chrome/test/base/testing_browser_process.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/time/default_tick_clock.h" 9 #include "base/time/default_tick_clock.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 : notification_service_(content::NotificationService::Create()), 68 : notification_service_(content::NotificationService::Create()),
69 module_ref_count_(0), 69 module_ref_count_(0),
70 app_locale_("en"), 70 app_locale_("en"),
71 local_state_(NULL), 71 local_state_(NULL),
72 io_thread_(NULL), 72 io_thread_(NULL),
73 system_request_context_(NULL), 73 system_request_context_(NULL),
74 platform_part_(new TestingBrowserProcessPlatformPart()) { 74 platform_part_(new TestingBrowserProcessPlatformPart()) {
75 #if defined(ENABLE_EXTENSIONS) 75 #if defined(ENABLE_EXTENSIONS)
76 extensions_browser_client_.reset( 76 extensions_browser_client_.reset(
77 new extensions::ChromeExtensionsBrowserClient); 77 new extensions::ChromeExtensionsBrowserClient);
78 apps::AppsClient::Set(ChromeAppsClient::GetInstance()); 78 extensions::AppsClient::Set(ChromeAppsClient::GetInstance());
79 extensions::ExtensionsBrowserClient::Set(extensions_browser_client_.get()); 79 extensions::ExtensionsBrowserClient::Set(extensions_browser_client_.get());
80 #endif 80 #endif
81 } 81 }
82 82
83 TestingBrowserProcess::~TestingBrowserProcess() { 83 TestingBrowserProcess::~TestingBrowserProcess() {
84 EXPECT_FALSE(local_state_); 84 EXPECT_FALSE(local_state_);
85 #if defined(ENABLE_CONFIGURATION_POLICY) 85 #if defined(ENABLE_CONFIGURATION_POLICY)
86 SetBrowserPolicyConnector(NULL); 86 SetBrowserPolicyConnector(NULL);
87 #endif 87 #endif
88 #if defined(ENABLE_EXTENSIONS) 88 #if defined(ENABLE_EXTENSIONS)
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 /////////////////////////////////////////////////////////////////////////////// 439 ///////////////////////////////////////////////////////////////////////////////
440 440
441 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { 441 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() {
442 TestingBrowserProcess::CreateInstance(); 442 TestingBrowserProcess::CreateInstance();
443 } 443 }
444 444
445 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { 445 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() {
446 TestingBrowserProcess::DeleteInstance(); 446 TestingBrowserProcess::DeleteInstance();
447 } 447 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698