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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 bool TestingBrowserProcess::IsShuttingDown() { | 171 bool TestingBrowserProcess::IsShuttingDown() { |
172 return false; | 172 return false; |
173 } | 173 } |
174 | 174 |
175 printing::PrintJobManager* TestingBrowserProcess::print_job_manager() { | 175 printing::PrintJobManager* TestingBrowserProcess::print_job_manager() { |
176 return NULL; | 176 return NULL; |
177 } | 177 } |
178 | 178 |
179 printing::PrintPreviewTabController* | 179 printing::PrintPreviewTabController* |
180 TestingBrowserProcess::print_preview_tab_controller() { | 180 TestingBrowserProcess::print_preview_tab_controller() { |
| 181 #if defined(OS_ANDROID) |
| 182 NOTIMPLEMENTED(); |
| 183 return NULL; |
| 184 #else |
181 if (!print_preview_tab_controller_.get()) | 185 if (!print_preview_tab_controller_.get()) |
182 print_preview_tab_controller_ = new printing::PrintPreviewTabController(); | 186 print_preview_tab_controller_ = new printing::PrintPreviewTabController(); |
183 return print_preview_tab_controller_.get(); | 187 return print_preview_tab_controller_.get(); |
| 188 #endif |
184 } | 189 } |
185 | 190 |
186 printing::BackgroundPrintingManager* | 191 printing::BackgroundPrintingManager* |
187 TestingBrowserProcess::background_printing_manager() { | 192 TestingBrowserProcess::background_printing_manager() { |
| 193 #if defined(OS_ANDROID) |
| 194 NOTIMPLEMENTED(); |
| 195 return NULL; |
| 196 #else |
188 if (!background_printing_manager_.get()) { | 197 if (!background_printing_manager_.get()) { |
189 background_printing_manager_.reset( | 198 background_printing_manager_.reset( |
190 new printing::BackgroundPrintingManager()); | 199 new printing::BackgroundPrintingManager()); |
191 } | 200 } |
192 return background_printing_manager_.get(); | 201 return background_printing_manager_.get(); |
| 202 #endif |
193 } | 203 } |
194 | 204 |
195 const std::string& TestingBrowserProcess::GetApplicationLocale() { | 205 const std::string& TestingBrowserProcess::GetApplicationLocale() { |
196 return app_locale_; | 206 return app_locale_; |
197 } | 207 } |
198 | 208 |
199 void TestingBrowserProcess::SetApplicationLocale( | 209 void TestingBrowserProcess::SetApplicationLocale( |
200 const std::string& app_locale) { | 210 const std::string& app_locale) { |
201 app_locale_ = app_locale; | 211 app_locale_ = app_locale; |
202 } | 212 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 258 |
249 void TestingBrowserProcess::SetBrowserPolicyConnector( | 259 void TestingBrowserProcess::SetBrowserPolicyConnector( |
250 policy::BrowserPolicyConnector* connector) { | 260 policy::BrowserPolicyConnector* connector) { |
251 browser_policy_connector_.reset(connector); | 261 browser_policy_connector_.reset(connector); |
252 } | 262 } |
253 | 263 |
254 void TestingBrowserProcess::SetSafeBrowsingService( | 264 void TestingBrowserProcess::SetSafeBrowsingService( |
255 SafeBrowsingService* sb_service) { | 265 SafeBrowsingService* sb_service) { |
256 sb_service_ = sb_service; | 266 sb_service_ = sb_service; |
257 } | 267 } |
OLD | NEW |