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

Side by Side Diff: chrome/browser/services/gcm/gcm_profile_service.cc

Issue 211973003: [GCM] Cleanup for ios enabling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/invalidation/ticl_invalidation_service_unittest.cc ('k') | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/browser/services/gcm/gcm_profile_service.h" 5 #include "chrome/browser/services/gcm/gcm_profile_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 namespace gcm { 37 namespace gcm {
38 38
39 namespace { 39 namespace {
40 40
41 checkin_proto::ChromeBuildProto_Platform GetPlatform() { 41 checkin_proto::ChromeBuildProto_Platform GetPlatform() {
42 #if defined(OS_WIN) 42 #if defined(OS_WIN)
43 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_WIN; 43 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_WIN;
44 #elif defined(OS_MACOSX) 44 #elif defined(OS_MACOSX)
45 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_MAC; 45 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_MAC;
46 #elif defined(OS_IOS)
47 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_IOS;
46 #elif defined(OS_CHROMEOS) 48 #elif defined(OS_CHROMEOS)
47 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_CROS; 49 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_CROS;
48 #elif defined(OS_LINUX) 50 #elif defined(OS_LINUX)
49 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_LINUX; 51 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_LINUX;
50 #else 52 #else
51 // For all other platforms, return as LINUX. 53 // For all other platforms, return as LINUX.
52 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_LINUX; 54 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_LINUX;
53 #endif 55 #endif
54 } 56 }
55 57
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 } 905 }
904 906
905 void GCMProfileService::RequestGCMStatisticsFinished( 907 void GCMProfileService::RequestGCMStatisticsFinished(
906 GCMClient::GCMStatistics stats) { 908 GCMClient::GCMStatistics stats) {
907 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 909 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
908 910
909 request_gcm_statistics_callback_.Run(stats); 911 request_gcm_statistics_callback_.Run(stats);
910 } 912 }
911 913
912 } // namespace gcm 914 } // namespace gcm
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/ticl_invalidation_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698