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

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

Issue 10332190: Add SystemMonitor::GetMediaDevices() (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 8 years, 7 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
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_impl.h" 10 #include "chrome/browser/policy/policy_service_impl.h"
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 } 236 }
237 237
238 ComponentUpdateService* TestingBrowserProcess::component_updater() { 238 ComponentUpdateService* TestingBrowserProcess::component_updater() {
239 return NULL; 239 return NULL;
240 } 240 }
241 241
242 CRLSetFetcher* TestingBrowserProcess::crl_set_fetcher() { 242 CRLSetFetcher* TestingBrowserProcess::crl_set_fetcher() {
243 return NULL; 243 return NULL;
244 } 244 }
245 245
246 chrome::MediaDeviceManager* TestingBrowserProcess::media_device_manager() {
247 return NULL;
248 }
249
246 void TestingBrowserProcess::SetLocalState(PrefService* local_state) { 250 void TestingBrowserProcess::SetLocalState(PrefService* local_state) {
247 if (!local_state && notification_ui_manager_.get()) 251 if (!local_state && notification_ui_manager_.get())
248 notification_ui_manager_.reset(); // Used local_state_. 252 notification_ui_manager_.reset(); // Used local_state_.
249 local_state_ = local_state; 253 local_state_ = local_state;
250 } 254 }
251 255
252 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { 256 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) {
253 io_thread_ = io_thread; 257 io_thread_ = io_thread;
254 } 258 }
255 259
256 void TestingBrowserProcess::SetBrowserPolicyConnector( 260 void TestingBrowserProcess::SetBrowserPolicyConnector(
257 policy::BrowserPolicyConnector* connector) { 261 policy::BrowserPolicyConnector* connector) {
258 browser_policy_connector_.reset(connector); 262 browser_policy_connector_.reset(connector);
259 } 263 }
260 264
261 void TestingBrowserProcess::SetSafeBrowsingService( 265 void TestingBrowserProcess::SetSafeBrowsingService(
262 SafeBrowsingService* sb_service) { 266 SafeBrowsingService* sb_service) {
263 sb_service_ = sb_service; 267 sb_service_ = sb_service;
264 } 268 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698