| 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 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 21 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 22 #include "chrome/browser/extensions/extension_service.h" | 22 #include "chrome/browser/extensions/extension_service.h" |
| 23 #include "chrome/browser/extensions/extension_system.h" | 23 #include "chrome/browser/extensions/extension_system.h" |
| 24 #include "chrome/browser/policy/browser_policy_connector.h" | 24 #include "chrome/browser/policy/browser_policy_connector.h" |
| 25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
| 26 #include "chrome/browser/signin/profile_oauth2_token_service.h" | 26 #include "chrome/browser/signin/profile_oauth2_token_service.h" |
| 27 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 27 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 28 #include "chrome/browser/signin/signin_global_error.h" | 28 #include "chrome/browser/signin/signin_global_error.h" |
| 29 #include "chrome/common/extensions/api/identity.h" | 29 #include "chrome/common/extensions/api/identity.h" |
| 30 #include "chrome/common/extensions/api/identity/oauth2_manifest_handler.h" | 30 #include "chrome/common/extensions/api/identity/oauth2_manifest_handler.h" |
| 31 #include "chrome/common/extensions/extension.h" | |
| 32 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
| 33 #include "chrome/common/url_constants.h" | 32 #include "chrome/common/url_constants.h" |
| 33 #include "extensions/common/extension.h" |
| 34 #include "google_apis/gaia/gaia_urls.h" | 34 #include "google_apis/gaia/gaia_urls.h" |
| 35 #include "url/gurl.h" | 35 #include "url/gurl.h" |
| 36 | 36 |
| 37 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
| 38 #include "chrome/browser/chromeos/login/user_manager.h" | 38 #include "chrome/browser/chromeos/login/user_manager.h" |
| 39 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h" | 39 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h" |
| 40 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h
" | 40 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h
" |
| 41 #include "google_apis/gaia/gaia_constants.h" | 41 #include "google_apis/gaia/gaia_constants.h" |
| 42 #endif | 42 #endif |
| 43 | 43 |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 const IdentityAPI::TokenCacheKey& rhs) const { | 778 const IdentityAPI::TokenCacheKey& rhs) const { |
| 779 if (extension_id < rhs.extension_id) | 779 if (extension_id < rhs.extension_id) |
| 780 return true; | 780 return true; |
| 781 else if (rhs.extension_id < extension_id) | 781 else if (rhs.extension_id < extension_id) |
| 782 return false; | 782 return false; |
| 783 | 783 |
| 784 return scopes < rhs.scopes; | 784 return scopes < rhs.scopes; |
| 785 } | 785 } |
| 786 | 786 |
| 787 } // namespace extensions | 787 } // namespace extensions |
| OLD | NEW |