OLD | NEW |
---|---|
(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 } | |
OLD | NEW |