| 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/policy/enrollment_handler_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/enrollment_handler_chromeos.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" | 12 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" |
| 13 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h" | 13 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h" |
| 14 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h
" | 14 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h
" |
| 15 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | |
| 16 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" | 15 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" |
| 17 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" | 16 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
| 18 #include "chromeos/chromeos_switches.h" | 17 #include "chromeos/chromeos_switches.h" |
| 18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 19 #include "google_apis/gaia/gaia_urls.h" | 19 #include "google_apis/gaia/gaia_urls.h" |
| 20 #include "net/http/http_status_code.h" | 20 #include "net/http/http_status_code.h" |
| 21 | 21 |
| 22 namespace em = enterprise_management; | 22 namespace em = enterprise_management; |
| 23 | 23 |
| 24 namespace policy { | 24 namespace policy { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 // Retry for InstallAttrs initialization every 500ms. | 28 // Retry for InstallAttrs initialization every 500ms. |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 << " " << status.client_status() | 379 << " " << status.client_status() |
| 380 << " " << status.validation_status() | 380 << " " << status.validation_status() |
| 381 << " " << status.store_status(); | 381 << " " << status.store_status(); |
| 382 } | 382 } |
| 383 | 383 |
| 384 if (!callback.is_null()) | 384 if (!callback.is_null()) |
| 385 callback.Run(status); | 385 callback.Run(status); |
| 386 } | 386 } |
| 387 | 387 |
| 388 } // namespace policy | 388 } // namespace policy |
| OLD | NEW |