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

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

Issue 294053017: Move all gcm activity types out of GCMStatsRecorder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | chrome/browser/ui/webui/gcm_internals_ui.cc » ('j') | 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 "chrome/browser/services/gcm/gcm_driver.h" 5 #include "chrome/browser/services/gcm/gcm_driver.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/files/file_path.h"
juyik 2014/05/23 22:35:41 Is this needed for this patch?
jianli 2014/05/23 22:37:55 Yes. Now we need this because gcm_client.h does no
Nicolas Zea 2014/05/24 00:01:29 FilePath can be forward declared
jianli 2014/05/24 00:10:50 It is forward declared in gcm_client.h and we need
12 #include "base/location.h" 13 #include "base/location.h"
13 #include "base/logging.h" 14 #include "base/logging.h"
14 #include "base/sequenced_task_runner.h" 15 #include "base/sequenced_task_runner.h"
15 #include "base/threading/sequenced_worker_pool.h" 16 #include "base/threading/sequenced_worker_pool.h"
16 #include "chrome/common/chrome_version_info.h" 17 #include "chrome/common/chrome_version_info.h"
17 #include "components/gcm_driver/gcm_app_handler.h" 18 #include "components/gcm_driver/gcm_app_handler.h"
18 #include "components/gcm_driver/gcm_client_factory.h" 19 #include "components/gcm_driver/gcm_client_factory.h"
19 #include "components/gcm_driver/system_encryptor.h" 20 #include "components/gcm_driver/system_encryptor.h"
20 #include "google_apis/gaia/oauth2_token_service.h" 21 #include "google_apis/gaia/oauth2_token_service.h"
21 #include "net/url_request/url_request_context_getter.h" 22 #include "net/url_request/url_request_context_getter.h"
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 LOG(WARNING) << "request_gcm_statistics_callback_ is NULL."; 813 LOG(WARNING) << "request_gcm_statistics_callback_ is NULL.";
813 } 814 }
814 815
815 std::string GCMDriver::SignedInUserName() const { 816 std::string GCMDriver::SignedInUserName() const {
816 if (IsStarted()) 817 if (IsStarted())
817 return identity_provider_->GetActiveUsername(); 818 return identity_provider_->GetActiveUsername();
818 return std::string(); 819 return std::string();
819 } 820 }
820 821
821 } // namespace gcm 822 } // namespace gcm
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/gcm_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698