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

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

Issue 10696208: Move ExtensionEventRouter and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed bug + latest master Created 8 years, 4 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
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | chrome/test/base/testing_profile.h » ('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/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/notifications/notification_ui_manager.h" 8 #include "chrome/browser/notifications/notification_ui_manager.h"
9 #include "chrome/browser/policy/browser_policy_connector.h" 9 #include "chrome/browser/policy/browser_policy_connector.h"
10 #include "chrome/browser/policy/policy_service.h" 10 #include "chrome/browser/policy/policy_service.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 #endif // defined(OS_CHROMEOS) 127 #endif // defined(OS_CHROMEOS)
128 128
129 ui::Clipboard* TestingBrowserProcess::clipboard() { 129 ui::Clipboard* TestingBrowserProcess::clipboard() {
130 if (!clipboard_.get()) { 130 if (!clipboard_.get()) {
131 // Note that we need a MessageLoop for the next call to work. 131 // Note that we need a MessageLoop for the next call to work.
132 clipboard_.reset(new ui::Clipboard); 132 clipboard_.reset(new ui::Clipboard);
133 } 133 }
134 return clipboard_.get(); 134 return clipboard_.get();
135 } 135 }
136 136
137 ExtensionEventRouterForwarder* 137 extensions::EventRouterForwarder*
138 TestingBrowserProcess::extension_event_router_forwarder() { 138 TestingBrowserProcess::extension_event_router_forwarder() {
139 return NULL; 139 return NULL;
140 } 140 }
141 141
142 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { 142 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() {
143 #if defined(ENABLE_NOTIFICATIONS) 143 #if defined(ENABLE_NOTIFICATIONS)
144 if (!notification_ui_manager_.get()) 144 if (!notification_ui_manager_.get())
145 notification_ui_manager_.reset( 145 notification_ui_manager_.reset(
146 NotificationUIManager::Create(local_state())); 146 NotificationUIManager::Create(local_state()));
147 return notification_ui_manager_.get(); 147 return notification_ui_manager_.get();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 void TestingBrowserProcess::SetBrowserPolicyConnector( 261 void TestingBrowserProcess::SetBrowserPolicyConnector(
262 policy::BrowserPolicyConnector* connector) { 262 policy::BrowserPolicyConnector* connector) {
263 browser_policy_connector_.reset(connector); 263 browser_policy_connector_.reset(connector);
264 } 264 }
265 265
266 void TestingBrowserProcess::SetSafeBrowsingService( 266 void TestingBrowserProcess::SetSafeBrowsingService(
267 SafeBrowsingService* sb_service) { 267 SafeBrowsingService* sb_service) {
268 sb_service_ = sb_service; 268 sb_service_ = sb_service;
269 } 269 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_browser_process.h ('k') | chrome/test/base/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698