OLD | NEW |
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/signin/chrome_signin_client.h" | 5 #include "chrome/browser/signin/chrome_signin_client.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "build/build_config.h" |
10 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 14 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
12 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 15 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
13 #include "chrome/browser/profiles/profile_info_cache.h" | 16 #include "chrome/browser/profiles/profile_info_cache.h" |
14 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
15 #include "chrome/browser/profiles/profile_metrics.h" | 18 #include "chrome/browser/profiles/profile_metrics.h" |
16 #include "chrome/browser/profiles/profile_window.h" | 19 #include "chrome/browser/profiles/profile_window.h" |
17 #include "chrome/browser/signin/local_auth.h" | 20 #include "chrome/browser/signin/local_auth.h" |
18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 21 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
19 #include "chrome/browser/signin/signin_manager_factory.h" | 22 #include "chrome/browser/signin/signin_manager_factory.h" |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 ProfileOAuth2TokenService* token_service = | 373 ProfileOAuth2TokenService* token_service = |
371 ProfileOAuth2TokenServiceFactory::GetForProfile(profile_); | 374 ProfileOAuth2TokenServiceFactory::GetForProfile(profile_); |
372 OAuth2TokenService::ScopeSet scopes; | 375 OAuth2TokenService::ScopeSet scopes; |
373 scopes.insert(GaiaConstants::kGoogleUserInfoEmail); | 376 scopes.insert(GaiaConstants::kGoogleUserInfoEmail); |
374 oauth_request_ = token_service->StartRequest(account_id, scopes, this); | 377 oauth_request_ = token_service->StartRequest(account_id, scopes, this); |
375 } | 378 } |
376 } | 379 } |
377 } | 380 } |
378 #endif | 381 #endif |
379 } | 382 } |
OLD | NEW |