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

Side by Side Diff: sync/notifier/gcm_network_channel.cc

Issue 286213003: Make GCMProfileService own GCMDriver, instead of deriving from it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 6 years, 7 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 | « google_apis/gcm/gcm_client.h ('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 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
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
OLDNEW
« no previous file with comments | « google_apis/gcm/gcm_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698