| 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/extensions/api/identity/identity_api.h" | 5 #include "chrome/browser/extensions/api/identity/identity_api.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 29 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 30 #include "components/signin/core/browser/signin_manager.h" | 30 #include "components/signin/core/browser/signin_manager.h" |
| 31 #include "components/signin/core/common/profile_management_switches.h" | 31 #include "components/signin/core/common/profile_management_switches.h" |
| 32 #include "extensions/browser/event_router.h" | 32 #include "extensions/browser/event_router.h" |
| 33 #include "extensions/browser/extension_function_dispatcher.h" | 33 #include "extensions/browser/extension_function_dispatcher.h" |
| 34 #include "extensions/common/extension.h" | 34 #include "extensions/common/extension.h" |
| 35 #include "google_apis/gaia/gaia_urls.h" | 35 #include "google_apis/gaia/gaia_urls.h" |
| 36 #include "url/gurl.h" | 36 #include "url/gurl.h" |
| 37 | 37 |
| 38 #if defined(OS_CHROMEOS) | 38 #if defined(OS_CHROMEOS) |
| 39 #include "chrome/browser/chromeos/login/user_manager.h" | 39 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 40 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 40 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 41 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h" | 41 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h" |
| 42 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h
" | 42 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h
" |
| 43 #include "google_apis/gaia/gaia_constants.h" | 43 #include "google_apis/gaia/gaia_constants.h" |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 namespace extensions { | 46 namespace extensions { |
| 47 | 47 |
| 48 namespace identity_constants { | 48 namespace identity_constants { |
| 49 const char kInvalidClientId[] = "Invalid OAuth2 Client ID."; | 49 const char kInvalidClientId[] = "Invalid OAuth2 Client ID."; |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 void IdentityLaunchWebAuthFlowFunction::OnAuthFlowURLChange( | 829 void IdentityLaunchWebAuthFlowFunction::OnAuthFlowURLChange( |
| 830 const GURL& redirect_url) { | 830 const GURL& redirect_url) { |
| 831 if (redirect_url.GetWithEmptyPath() == final_url_prefix_) { | 831 if (redirect_url.GetWithEmptyPath() == final_url_prefix_) { |
| 832 SetResult(new base::StringValue(redirect_url.spec())); | 832 SetResult(new base::StringValue(redirect_url.spec())); |
| 833 SendResponse(true); | 833 SendResponse(true); |
| 834 Release(); // Balanced in RunAsync. | 834 Release(); // Balanced in RunAsync. |
| 835 } | 835 } |
| 836 } | 836 } |
| 837 | 837 |
| 838 } // namespace extensions | 838 } // namespace extensions |
| OLD | NEW |