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/experimental_identity_api.h" | 5 #include "chrome/browser/extensions/api/identity/experimental_identity_api.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/app_mode/app_mode_utils.h" | 13 #include "chrome/browser/app_mode/app_mode_utils.h" |
14 #include "chrome/browser/extensions/api/identity/identity_api.h" | 14 #include "chrome/browser/extensions/api/identity/identity_api.h" |
15 #include "chrome/browser/extensions/extension_install_prompt.h" | 15 #include "chrome/browser/extensions/extension_install_prompt.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/signin/profile_oauth2_token_service.h" | 17 #include "chrome/browser/signin/profile_oauth2_token_service.h" |
18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
19 #include "chrome/browser/signin/signin_manager.h" | 19 #include "chrome/browser/signin/signin_manager.h" |
20 #include "chrome/browser/signin/signin_manager_factory.h" | 20 #include "chrome/browser/signin/signin_manager_factory.h" |
21 #include "chrome/browser/ui/browser.h" | 21 #include "chrome/browser/ui/browser.h" |
22 #include "chrome/common/extensions/api/experimental_identity.h" | 22 #include "chrome/common/extensions/api/experimental_identity.h" |
23 #include "chrome/common/extensions/api/identity.h" | 23 #include "chrome/common/extensions/api/identity.h" |
24 #include "chrome/common/extensions/api/identity/oauth2_manifest_handler.h" | 24 #include "chrome/common/extensions/api/identity/oauth2_manifest_handler.h" |
25 #include "chrome/common/extensions/extension.h" | 25 #include "chrome/common/extensions/extension.h" |
26 #include "chrome/common/extensions/extension_manifest_constants.h" | |
27 #include "chrome/common/extensions/manifest_handler.h" | 26 #include "chrome/common/extensions/manifest_handler.h" |
28 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
29 #include "content/public/common/page_transition_types.h" | 28 #include "content/public/common/page_transition_types.h" |
30 #include "google_apis/gaia/gaia_constants.h" | 29 #include "google_apis/gaia/gaia_constants.h" |
31 #include "ui/base/window_open_disposition.h" | 30 #include "ui/base/window_open_disposition.h" |
32 #include "url/gurl.h" | 31 #include "url/gurl.h" |
33 | 32 |
34 #if defined(OS_CHROMEOS) | 33 #if defined(OS_CHROMEOS) |
35 #include "chrome/browser/chromeos/login/user_manager.h" | 34 #include "chrome/browser/chromeos/login/user_manager.h" |
36 #endif | 35 #endif |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 } | 390 } |
392 } | 391 } |
393 | 392 |
394 void ExperimentalIdentityLaunchWebAuthFlowFunction:: | 393 void ExperimentalIdentityLaunchWebAuthFlowFunction:: |
395 InitFinalRedirectURLPrefixesForTest(const std::string& extension_id) { | 394 InitFinalRedirectURLPrefixesForTest(const std::string& extension_id) { |
396 final_prefixes_.clear(); | 395 final_prefixes_.clear(); |
397 InitFinalRedirectURLPrefixes(extension_id); | 396 InitFinalRedirectURLPrefixes(extension_id); |
398 } | 397 } |
399 | 398 |
400 } // namespace extensions | 399 } // namespace extensions |
OLD | NEW |