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

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

Issue 671553002: Move extensions manifest handler for OAuth2 to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_apitest.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/easy_unlock_toggle_flow.h" 5 #include "chrome/browser/signin/easy_unlock_toggle_flow.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
14 #include "chrome/browser/signin/signin_manager_factory.h" 14 #include "chrome/browser/signin/signin_manager_factory.h"
15 #include "chrome/common/extensions/api/identity/oauth2_manifest_handler.h"
16 #include "chrome/common/extensions/extension_constants.h" 15 #include "chrome/common/extensions/extension_constants.h"
17 #include "components/signin/core/browser/profile_oauth2_token_service.h" 16 #include "components/signin/core/browser/profile_oauth2_token_service.h"
18 #include "components/signin/core/browser/signin_manager.h" 17 #include "components/signin/core/browser/signin_manager.h"
19 #include "extensions/browser/extension_system.h" 18 #include "extensions/browser/extension_system.h"
19 #include "extensions/common/manifest_handlers/oauth2_manifest_handler.h"
20 #include "google_apis/gaia/oauth2_api_call_flow.h" 20 #include "google_apis/gaia/oauth2_api_call_flow.h"
21 #include "net/url_request/url_fetcher.h" 21 #include "net/url_request/url_fetcher.h"
22 22
23 namespace { 23 namespace {
24 24
25 const char kEasyUnlockToggleUrl[] = 25 const char kEasyUnlockToggleUrl[] =
26 "https://www.googleapis.com/cryptauth/v1/deviceSync/toggleeasyunlock"; 26 "https://www.googleapis.com/cryptauth/v1/deviceSync/toggleeasyunlock";
27 27
28 std::vector<std::string> GetScopes() { 28 std::vector<std::string> GetScopes() {
29 std::vector<std::string> scopes; 29 std::vector<std::string> scopes;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 179 }
180 180
181 void EasyUnlockToggleFlow::OnIssueAdviceSuccess( 181 void EasyUnlockToggleFlow::OnIssueAdviceSuccess(
182 const IssueAdviceInfo& issue_advice) { 182 const IssueAdviceInfo& issue_advice) {
183 NOTREACHED(); 183 NOTREACHED();
184 } 184 }
185 185
186 void EasyUnlockToggleFlow::ReportToggleApiCallResult(bool success) { 186 void EasyUnlockToggleFlow::ReportToggleApiCallResult(bool success) {
187 callback_.Run(success); 187 callback_.Run(success);
188 } 188 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_apitest.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698