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

Side by Side Diff: components/gcm_driver/gcm_client_impl.cc

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 Created 4 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
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 "components/gcm_driver/gcm_client_impl.h" 5 #include "components/gcm_driver/gcm_client_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/location.h" 14 #include "base/location.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
17 #include "base/metrics/histogram_macros.h" 17 #include "base/metrics/histogram_macros.h"
18 #include "base/sequenced_task_runner.h" 18 #include "base/sequenced_task_runner.h"
19 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
20 #include "base/stl_util.h" 20 #include "base/stl_util.h"
21 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
22 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
23 #include "base/thread_task_runner_handle.h" 23 #include "base/threading/thread_task_runner_handle.h"
24 #include "base/time/default_clock.h" 24 #include "base/time/default_clock.h"
25 #include "base/timer/timer.h" 25 #include "base/timer/timer.h"
26 #include "components/gcm_driver/gcm_account_mapper.h" 26 #include "components/gcm_driver/gcm_account_mapper.h"
27 #include "components/gcm_driver/gcm_backoff_policy.h" 27 #include "components/gcm_driver/gcm_backoff_policy.h"
28 #include "google_apis/gcm/base/encryptor.h" 28 #include "google_apis/gcm/base/encryptor.h"
29 #include "google_apis/gcm/base/mcs_message.h" 29 #include "google_apis/gcm/base/mcs_message.h"
30 #include "google_apis/gcm/base/mcs_util.h" 30 #include "google_apis/gcm/base/mcs_util.h"
31 #include "google_apis/gcm/engine/checkin_request.h" 31 #include "google_apis/gcm/engine/checkin_request.h"
32 #include "google_apis/gcm/engine/connection_factory_impl.h" 32 #include "google_apis/gcm/engine/connection_factory_impl.h"
33 #include "google_apis/gcm/engine/gcm_registration_request_handler.h" 33 #include "google_apis/gcm/engine/gcm_registration_request_handler.h"
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 bool GCMClientImpl::HasStandaloneRegisteredApp() const { 1381 bool GCMClientImpl::HasStandaloneRegisteredApp() const {
1382 if (registrations_.empty()) 1382 if (registrations_.empty())
1383 return false; 1383 return false;
1384 // Note that account mapper is not counted as a standalone app since it is 1384 // Note that account mapper is not counted as a standalone app since it is
1385 // automatically started when other app uses GCM. 1385 // automatically started when other app uses GCM.
1386 return registrations_.size() > 1 || 1386 return registrations_.size() > 1 ||
1387 !ExistsGCMRegistrationInMap(registrations_, kGCMAccountMapperAppId); 1387 !ExistsGCMRegistrationInMap(registrations_, kGCMAccountMapperAppId);
1388 } 1388 }
1389 1389
1390 } // namespace gcm 1390 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_channel_status_syncer.cc ('k') | components/gcm_driver/gcm_client_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698