| OLD | NEW |
| 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/google/google_url_tracker.h" | 8 #include "chrome/browser/google/google_url_tracker.h" |
| 9 #include "chrome/browser/notifications/notification_ui_manager.h" | 9 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 10 #include "chrome/browser/policy/browser_policy_connector.h" | 10 #include "chrome/browser/policy/browser_policy_connector.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 127 } |
| 128 return clipboard_.get(); | 128 return clipboard_.get(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 ExtensionEventRouterForwarder* | 131 ExtensionEventRouterForwarder* |
| 132 TestingBrowserProcess::extension_event_router_forwarder() { | 132 TestingBrowserProcess::extension_event_router_forwarder() { |
| 133 return NULL; | 133 return NULL; |
| 134 } | 134 } |
| 135 | 135 |
| 136 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { | 136 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { |
| 137 #if defined(ENABLE_NOTIFICATIONS) |
| 137 if (!notification_ui_manager_.get()) | 138 if (!notification_ui_manager_.get()) |
| 138 notification_ui_manager_.reset( | 139 notification_ui_manager_.reset( |
| 139 NotificationUIManager::Create(local_state())); | 140 NotificationUIManager::Create(local_state())); |
| 140 return notification_ui_manager_.get(); | 141 return notification_ui_manager_.get(); |
| 142 #else |
| 143 NOTIMPLEMENTED(); |
| 144 return NULL; |
| 145 #endif |
| 141 } | 146 } |
| 142 | 147 |
| 143 GoogleURLTracker* TestingBrowserProcess::google_url_tracker() { | 148 GoogleURLTracker* TestingBrowserProcess::google_url_tracker() { |
| 144 return google_url_tracker_.get(); | 149 return google_url_tracker_.get(); |
| 145 } | 150 } |
| 146 | 151 |
| 147 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { | 152 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { |
| 148 return NULL; | 153 return NULL; |
| 149 } | 154 } |
| 150 | 155 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 263 |
| 259 void TestingBrowserProcess::SetBrowserPolicyConnector( | 264 void TestingBrowserProcess::SetBrowserPolicyConnector( |
| 260 policy::BrowserPolicyConnector* connector) { | 265 policy::BrowserPolicyConnector* connector) { |
| 261 browser_policy_connector_.reset(connector); | 266 browser_policy_connector_.reset(connector); |
| 262 } | 267 } |
| 263 | 268 |
| 264 void TestingBrowserProcess::SetSafeBrowsingService( | 269 void TestingBrowserProcess::SetSafeBrowsingService( |
| 265 SafeBrowsingService* sb_service) { | 270 SafeBrowsingService* sb_service) { |
| 266 sb_service_ = sb_service; | 271 sb_service_ = sb_service; |
| 267 } | 272 } |
| OLD | NEW |