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

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

Issue 2555833002: Remove enable_notifications build flag and define (Closed)
Patch Set: Merge Created 4 years 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/BUILD.gn ('k') | tools/grit/grit_rule.gni » ('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/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/time/default_clock.h" 8 #include "base/time/default_clock.h"
9 #include "base/time/default_tick_clock.h" 9 #include "base/time/default_tick_clock.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 BrowserProcessPlatformPart* TestingBrowserProcess::platform_part() { 214 BrowserProcessPlatformPart* TestingBrowserProcess::platform_part() {
215 return platform_part_.get(); 215 return platform_part_.get();
216 } 216 }
217 217
218 extensions::EventRouterForwarder* 218 extensions::EventRouterForwarder*
219 TestingBrowserProcess::extension_event_router_forwarder() { 219 TestingBrowserProcess::extension_event_router_forwarder() {
220 return nullptr; 220 return nullptr;
221 } 221 }
222 222
223 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { 223 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() {
224 #if defined(ENABLE_NOTIFICATIONS) && !defined(OS_ANDROID) 224 #if !defined(OS_ANDROID)
225 if (!notification_ui_manager_.get()) 225 if (!notification_ui_manager_.get())
226 notification_ui_manager_.reset(NotificationUIManager::Create()); 226 notification_ui_manager_.reset(NotificationUIManager::Create());
227 return notification_ui_manager_.get(); 227 return notification_ui_manager_.get();
228 #else 228 #else
229 NOTIMPLEMENTED(); 229 NOTIMPLEMENTED();
230 return nullptr; 230 return nullptr;
231 #endif 231 #endif
232 } 232 }
233 233
234 NotificationPlatformBridge* 234 NotificationPlatformBridge*
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 456
457 /////////////////////////////////////////////////////////////////////////////// 457 ///////////////////////////////////////////////////////////////////////////////
458 458
459 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { 459 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() {
460 TestingBrowserProcess::CreateInstance(); 460 TestingBrowserProcess::CreateInstance();
461 } 461 }
462 462
463 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { 463 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() {
464 TestingBrowserProcess::DeleteInstance(); 464 TestingBrowserProcess::DeleteInstance();
465 } 465 }
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | tools/grit/grit_rule.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698