OLD | NEW |
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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 namespace gcm { | 36 namespace gcm { |
37 | 37 |
38 namespace { | 38 namespace { |
39 | 39 |
40 checkin_proto::ChromeBuildProto_Platform GetPlatform() { | 40 checkin_proto::ChromeBuildProto_Platform GetPlatform() { |
41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
42 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_WIN; | 42 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_WIN; |
43 #elif defined(OS_MACOSX) | 43 #elif defined(OS_MACOSX) |
44 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_MAC; | 44 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_MAC; |
| 45 #elif defined(OS_IOS) |
| 46 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_IOS; |
45 #elif defined(OS_CHROMEOS) | 47 #elif defined(OS_CHROMEOS) |
46 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_CROS; | 48 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_CROS; |
47 #elif defined(OS_LINUX) | 49 #elif defined(OS_LINUX) |
48 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_LINUX; | 50 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_LINUX; |
49 #else | 51 #else |
50 // For all other platforms, return as LINUX. | 52 // For all other platforms, return as LINUX. |
51 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_LINUX; | 53 return checkin_proto::ChromeBuildProto_Platform_PLATFORM_LINUX; |
52 #endif | 54 #endif |
53 } | 55 } |
54 | 56 |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 } | 904 } |
903 | 905 |
904 void GCMProfileService::RequestGCMStatisticsFinished( | 906 void GCMProfileService::RequestGCMStatisticsFinished( |
905 GCMClient::GCMStatistics stats) { | 907 GCMClient::GCMStatistics stats) { |
906 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 908 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
907 | 909 |
908 request_gcm_statistics_callback_.Run(stats); | 910 request_gcm_statistics_callback_.Run(stats); |
909 } | 911 } |
910 | 912 |
911 } // namespace gcm | 913 } // namespace gcm |
OLD | NEW |