| OLD | NEW |
| 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_manager.h" | 5 #include "chrome/browser/signin/signin_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/string_split.h" | 11 #include "base/string_split.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/content_settings/cookie_settings.h" | 15 #include "chrome/browser/content_settings/cookie_settings.h" |
| 16 #include "chrome/browser/prefs/pref_service.h" | 16 #include "chrome/browser/prefs/pref_service.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/signin/token_service.h" | 18 #include "chrome/browser/signin/token_service.h" |
| 19 #include "chrome/browser/signin/token_service_factory.h" | 19 #include "chrome/browser/signin/token_service_factory.h" |
| 20 #include "chrome/browser/sync/profile_sync_service.h" | 20 #include "chrome/browser/sync/profile_sync_service.h" |
| 21 #include "chrome/common/chrome_notification_types.h" | 21 #include "chrome/common/chrome_notification_types.h" |
| 22 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
| 23 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" | |
| 24 #include "chrome/common/net/gaia/gaia_constants.h" | |
| 25 #include "chrome/common/net/gaia/gaia_urls.h" | |
| 26 #include "chrome/common/pref_names.h" | 23 #include "chrome/common/pref_names.h" |
| 27 #include "content/public/browser/notification_service.h" | 24 #include "content/public/browser/notification_service.h" |
| 25 #include "google_apis/gaia/gaia_auth_fetcher.h" |
| 26 #include "google_apis/gaia/gaia_constants.h" |
| 27 #include "google_apis/gaia/gaia_urls.h" |
| 28 #include "net/cookies/cookie_monster.h" | 28 #include "net/cookies/cookie_monster.h" |
| 29 #include "unicode/regex.h" | 29 #include "unicode/regex.h" |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 const char kGetInfoEmailKey[] = "email"; | 33 const char kGetInfoEmailKey[] = "email"; |
| 34 const char kGetInfoServicesKey[] = "allServices"; | 34 const char kGetInfoServicesKey[] = "allServices"; |
| 35 const char kGooglePlusServiceKey[] = "googleme"; | 35 const char kGooglePlusServiceKey[] = "googleme"; |
| 36 | 36 |
| 37 const char kGoogleAccountsUrl[] = "https://accounts.google.com"; | 37 const char kGoogleAccountsUrl[] = "https://accounts.google.com"; |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 CleanupNotificationRegistration(); | 505 CleanupNotificationRegistration(); |
| 506 } | 506 } |
| 507 break; | 507 break; |
| 508 } | 508 } |
| 509 #endif | 509 #endif |
| 510 default: | 510 default: |
| 511 NOTREACHED(); | 511 NOTREACHED(); |
| 512 } | 512 } |
| 513 } | 513 } |
| 514 | 514 |
| OLD | NEW |