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

Side by Side Diff: chrome/browser/extensions/api/identity/identity_api.cc

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 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/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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698