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

Unified Diff: chrome/test/testing_browser_process.cc

Issue 6914021: Modifying the BackgroundModeManager to handle multiple profiles. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/testing_browser_process.cc
===================================================================
--- chrome/test/testing_browser_process.cc (revision 86295)
+++ chrome/test/testing_browser_process.cc (working copy)
@@ -4,8 +4,10 @@
#include "chrome/test/testing_browser_process.h"
+#include "base/command_line.h"
#include "base/string_util.h"
#include "base/synchronization/waitable_event.h"
+#include "chrome/browser/background_mode_manager.h"
#include "chrome/browser/google/google_url_tracker.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
#include "chrome/browser/policy/browser_policy_connector.h"
@@ -123,6 +125,18 @@
return NULL;
}
+BackgroundModeManager* TestingBrowserProcess::background_mode_manager() {
+ if (!background_mode_manager_.get()) {
+ CommandLine cl(CommandLine::NO_PROGRAM);
+ background_mode_manager_.reset(new BackgroundModeManager(&cl, true));
Andrew T Wilson (Slow) 2011/05/24 20:49:28 Not sure why we aren't returning NULL here any mor
rpetterson 2011/05/24 21:48:43 Done.
+ }
+ return background_mode_manager_.get();
+}
+
+StatusTray* TestingBrowserProcess::status_tray() {
+ return NULL;
+}
+
safe_browsing::ClientSideDetectionService*
TestingBrowserProcess::safe_browsing_detection_service() {
return NULL;

Powered by Google App Engine
This is Rietveld 408576698