OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/base64.h" | 5 #include "base/base64.h" |
6 #include "base/i18n/time_formatting.h" | 6 #include "base/i18n/time_formatting.h" |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/sha1.h" | 8 #include "base/sha1.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 #define ENUM_CASE(x) case x: return #x; break; | 414 #define ENUM_CASE(x) case x: return #x; break; |
415 switch (result) { | 415 switch (result) { |
416 ENUM_CASE(gcm::GCMClient::SUCCESS); | 416 ENUM_CASE(gcm::GCMClient::SUCCESS); |
417 ENUM_CASE(gcm::GCMClient::NETWORK_ERROR); | 417 ENUM_CASE(gcm::GCMClient::NETWORK_ERROR); |
418 ENUM_CASE(gcm::GCMClient::SERVER_ERROR); | 418 ENUM_CASE(gcm::GCMClient::SERVER_ERROR); |
419 ENUM_CASE(gcm::GCMClient::TTL_EXCEEDED); | 419 ENUM_CASE(gcm::GCMClient::TTL_EXCEEDED); |
420 ENUM_CASE(gcm::GCMClient::UNKNOWN_ERROR); | 420 ENUM_CASE(gcm::GCMClient::UNKNOWN_ERROR); |
421 ENUM_CASE(gcm::GCMClient::NOT_SIGNED_IN); | 421 ENUM_CASE(gcm::GCMClient::NOT_SIGNED_IN); |
422 ENUM_CASE(gcm::GCMClient::INVALID_PARAMETER); | 422 ENUM_CASE(gcm::GCMClient::INVALID_PARAMETER); |
423 ENUM_CASE(gcm::GCMClient::ASYNC_OPERATION_PENDING); | 423 ENUM_CASE(gcm::GCMClient::ASYNC_OPERATION_PENDING); |
| 424 ENUM_CASE(gcm::GCMClient::GCM_DISABLED); |
424 } | 425 } |
425 NOTREACHED(); | 426 NOTREACHED(); |
426 return ""; | 427 return ""; |
427 } | 428 } |
428 | 429 |
429 } // namespace syncer | 430 } // namespace syncer |
OLD | NEW |