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/chromeos/login/oauth2_policy_fetcher.h" | 5 #include "chrome/browser/chromeos/login/oauth2_policy_fetcher.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" | |
Joao da Silva
2013/02/06 09:43:13
Same about _chromeos.h suffix
Mattias Nissler (ping if slow)
2013/02/06 13:51:53
Same answer.
| |
12 #include "chrome/browser/policy/browser_policy_connector.h" | 13 #include "chrome/browser/policy/browser_policy_connector.h" |
13 #include "chrome/browser/policy/user_cloud_policy_manager_chromeos.h" | |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "google_apis/gaia/gaia_auth_fetcher.h" | 15 #include "google_apis/gaia/gaia_auth_fetcher.h" |
16 #include "google_apis/gaia/gaia_constants.h" | 16 #include "google_apis/gaia/gaia_constants.h" |
17 #include "google_apis/gaia/gaia_urls.h" | 17 #include "google_apis/gaia/gaia_urls.h" |
18 #include "google_apis/gaia/google_service_auth_error.h" | 18 #include "google_apis/gaia/google_service_auth_error.h" |
19 #include "google_apis/gaia/oauth2_access_token_fetcher.h" | 19 #include "google_apis/gaia/oauth2_access_token_fetcher.h" |
20 | 20 |
21 using content::BrowserThread; | 21 using content::BrowserThread; |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 browser_policy_connector->GetUserCloudPolicyManager(); | 145 browser_policy_connector->GetUserCloudPolicyManager(); |
146 if (cloud_policy_manager) { | 146 if (cloud_policy_manager) { |
147 if (token.empty()) | 147 if (token.empty()) |
148 cloud_policy_manager->CancelWaitForPolicyFetch(); | 148 cloud_policy_manager->CancelWaitForPolicyFetch(); |
149 else | 149 else |
150 cloud_policy_manager->RegisterClient(token); | 150 cloud_policy_manager->RegisterClient(token); |
151 } | 151 } |
152 } | 152 } |
153 | 153 |
154 } // namespace chromeos | 154 } // namespace chromeos |
OLD | NEW |