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

Side by Side Diff: chrome/browser/signin/signin_internals_util.cc

Issue 12680004: Remove chrome/ code to handle App Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 7 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/signin/signin_internals_util.h" 5 #include "chrome/browser/signin/signin_internals_util.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/common/chrome_version_info.h" 12 #include "chrome/common/chrome_version_info.h"
13 #include "chrome/common/extensions/extension_messages.h" 13 #include "chrome/common/extensions/extension_messages.h"
14 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "crypto/sha2.h" 16 #include "crypto/sha2.h"
17 #include "google_apis/gaia/gaia_constants.h" 17 #include "google_apis/gaia/gaia_constants.h"
18 18
19 namespace signin_internals_util { 19 namespace signin_internals_util {
20 20
21 const char kSigninPrefPrefix[] = "google.services.signin."; 21 const char kSigninPrefPrefix[] = "google.services.signin.";
22 const char kTokenPrefPrefix[] = "google.services.signin.tokens."; 22 const char kTokenPrefPrefix[] = "google.services.signin.tokens.";
23 const char kChromeToMobileToken[] = "ChromeToMobile"; 23 const char kChromeToMobileToken[] = "ChromeToMobile";
24 const char kAppNotifyChannelSetupToken[] = "AppNotifyChannelSetup";
25 const char kOperationsBaseToken[] = "OperationsBase"; 24 const char kOperationsBaseToken[] = "OperationsBase";
26 const char kUserPolicySigninServiceToken[] = "UserCloudPolicyManagerToken"; 25 const char kUserPolicySigninServiceToken[] = "UserCloudPolicyManagerToken";
27 const char kProfileDownloaderToken[] = "ProfileDownloader"; 26 const char kProfileDownloaderToken[] = "ProfileDownloader";
28 27
29 // TODO(vishwath): These two services need their information plumbed to 28 // TODO(vishwath): These two services need their information plumbed to
30 // about:signin-internals. 29 // about:signin-internals.
31 const char kObfuscatedGaiaIdFetcherToken[] = "ObfuscatedGaiaIdFetcher"; 30 const char kObfuscatedGaiaIdFetcherToken[] = "ObfuscatedGaiaIdFetcher";
32 const char kOAuth2MintTokenFlowToken[] = "OAuth2MintTokenFlow"; 31 const char kOAuth2MintTokenFlowToken[] = "OAuth2MintTokenFlow";
33 const char* kTokenPrefsArray[] = { 32 const char* kTokenPrefsArray[] = {
34 GaiaConstants::kSyncService, 33 GaiaConstants::kSyncService,
35 GaiaConstants::kLSOService, 34 GaiaConstants::kLSOService,
36 GaiaConstants::kGaiaOAuth2LoginRefreshToken, 35 GaiaConstants::kGaiaOAuth2LoginRefreshToken,
37 kChromeToMobileToken, 36 kChromeToMobileToken,
38 kAppNotifyChannelSetupToken,
39 kOperationsBaseToken, 37 kOperationsBaseToken,
40 kUserPolicySigninServiceToken, 38 kUserPolicySigninServiceToken,
41 kProfileDownloaderToken, 39 kProfileDownloaderToken,
42 kObfuscatedGaiaIdFetcherToken, 40 kObfuscatedGaiaIdFetcherToken,
43 kOAuth2MintTokenFlowToken 41 kOAuth2MintTokenFlowToken
44 }; 42 };
45 43
46 const size_t kNumTokenPrefs = arraysize(kTokenPrefsArray); 44 const size_t kNumTokenPrefs = arraysize(kTokenPrefsArray);
47 45
48 46
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 for (std::map<std::string, TokenInfo>::iterator it = token_info_map.begin(); 284 for (std::map<std::string, TokenInfo>::iterator it = token_info_map.begin();
287 it != token_info_map.end(); ++it) { 285 it != token_info_map.end(); ++it) {
288 DictionaryValue* token_info = it->second.ToValue(); 286 DictionaryValue* token_info = it->second.ToValue();
289 token_details->Append(token_info); 287 token_details->Append(token_info);
290 } 288 }
291 289
292 return signin_status.Pass(); 290 return signin_status.Pass();
293 } 291 }
294 292
295 } // namespace signin_internals_util 293 } // namespace signin_internals_util
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_internals_util.h ('k') | chrome/browser/sync/glue/app_notification_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698