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

Side by Side Diff: chrome/browser/push_messaging/push_messaging_service_observer.cc

Issue 1485743002: Push API: test that default notification is shown on Android when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PushMessagingInstrumentationTest
Patch Set: Address peter's comments. Created 5 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
Peter Beverloo 2015/12/10 18:47:51 With an #ifdef you'd be able to avoid having this
Michael van Ouwerkerk 2015/12/11 11:23:54 I'm not sure how you would avoid defining this fil
Peter Beverloo 2015/12/11 11:30:03 My question is why we need the Create() method at
Michael van Ouwerkerk 2015/12/11 11:38:24 That would move the ifdef to the callsite. One of
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/push_messaging/push_messaging_service_observer.h"
6
7 #include "build/build_config.h"
8
9 #if defined(OS_ANDROID)
10 #include "chrome/browser/push_messaging/push_messaging_service_observer_android. h"
11 #endif
12
13 // static
14 PushMessagingServiceObserver* PushMessagingServiceObserver::Create() {
15 #if defined(OS_ANDROID)
16 return new PushMessagingServiceObserverAndroid();
17 #endif
18 return nullptr;
19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698