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

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

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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
OLDNEW
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 "base/base64.h" 7 #include "base/base64.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "chrome/browser/chrome_notification_types.h" 11 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/extensions/extension_system.h"
14 #include "chrome/browser/extensions/state_store.h" 13 #include "chrome/browser/extensions/state_store.h"
15 #include "chrome/browser/services/gcm/gcm_client_factory.h" 14 #include "chrome/browser/services/gcm/gcm_client_factory.h"
16 #include "chrome/browser/services/gcm/gcm_event_router.h" 15 #include "chrome/browser/services/gcm/gcm_event_router.h"
17 #include "chrome/browser/signin/signin_manager.h" 16 #include "chrome/browser/signin/signin_manager.h"
18 #include "chrome/browser/signin/signin_manager_factory.h" 17 #include "chrome/browser/signin/signin_manager_factory.h"
19 #include "chrome/common/chrome_version_info.h" 18 #include "chrome/common/chrome_version_info.h"
20 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
21 #include "components/user_prefs/pref_registry_syncable.h" 20 #include "components/user_prefs/pref_registry_syncable.h"
22 #include "components/webdata/encryptor/encryptor.h" 21 #include "components/webdata/encryptor/encryptor.h"
23 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
24 #include "content/public/browser/notification_details.h" 23 #include "content/public/browser/notification_details.h"
25 #include "content/public/browser/notification_source.h" 24 #include "content/public/browser/notification_source.h"
25 #include "extensions/browser/extension_system.h"
26 #include "extensions/common/extension.h" 26 #include "extensions/common/extension.h"
27 27
28 using extensions::Extension; 28 using extensions::Extension;
29 29
30 namespace gcm { 30 namespace gcm {
31 31
32 const char kRegistrationKey[] = "gcm.registration"; 32 const char kRegistrationKey[] = "gcm.registration";
33 const char kSendersKey[] = "senders"; 33 const char kSendersKey[] = "senders";
34 const char kRegistrationIDKey[] = "reg_id"; 34 const char kRegistrationIDKey[] = "reg_id";
35 35
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 1019
1020 return true; 1020 return true;
1021 } 1021 }
1022 1022
1023 // static 1023 // static
1024 const char* GCMProfileService::GetPersistentRegisterKeyForTesting() { 1024 const char* GCMProfileService::GetPersistentRegisterKeyForTesting() {
1025 return kRegistrationKey; 1025 return kRegistrationKey;
1026 } 1026 }
1027 1027
1028 } // namespace gcm 1028 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698