| 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 25 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |