| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/device_local_account.h" | 5 #include "chrome/browser/chromeos/policy/device_local_account.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 #include "chromeos/login/auth/user_context.h" | 98 #include "chromeos/login/auth/user_context.h" |
| 99 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 99 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 100 #include "components/policy/core/common/cloud/cloud_policy_core.h" | 100 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
| 101 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 101 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 102 #include "components/policy/core/common/cloud/policy_builder.h" | 102 #include "components/policy/core/common/cloud/policy_builder.h" |
| 103 #include "components/policy/core/common/external_data_fetcher.h" | 103 #include "components/policy/core/common/external_data_fetcher.h" |
| 104 #include "components/policy/core/common/policy_map.h" | 104 #include "components/policy/core/common/policy_map.h" |
| 105 #include "components/policy/core/common/policy_namespace.h" | 105 #include "components/policy/core/common/policy_namespace.h" |
| 106 #include "components/policy/core/common/policy_service.h" | 106 #include "components/policy/core/common/policy_service.h" |
| 107 #include "components/policy/core/common/policy_switches.h" | 107 #include "components/policy/core/common/policy_switches.h" |
| 108 #include "components/policy/policy_constants.h" |
| 108 #include "components/prefs/pref_change_registrar.h" | 109 #include "components/prefs/pref_change_registrar.h" |
| 109 #include "components/prefs/pref_service.h" | 110 #include "components/prefs/pref_service.h" |
| 110 #include "components/signin/core/browser/signin_manager.h" | 111 #include "components/signin/core/browser/signin_manager.h" |
| 111 #include "components/user_manager/user.h" | 112 #include "components/user_manager/user.h" |
| 112 #include "components/user_manager/user_manager.h" | 113 #include "components/user_manager/user_manager.h" |
| 113 #include "components/user_manager/user_type.h" | 114 #include "components/user_manager/user_type.h" |
| 114 #include "content/public/browser/browser_thread.h" | 115 #include "content/public/browser/browser_thread.h" |
| 115 #include "content/public/browser/notification_details.h" | 116 #include "content/public/browser/notification_details.h" |
| 116 #include "content/public/browser/notification_service.h" | 117 #include "content/public/browser/notification_service.h" |
| 117 #include "content/public/browser/notification_source.h" | 118 #include "content/public/browser/notification_source.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 132 #include "extensions/common/constants.h" | 133 #include "extensions/common/constants.h" |
| 133 #include "extensions/common/extension.h" | 134 #include "extensions/common/extension.h" |
| 134 #include "net/base/url_util.h" | 135 #include "net/base/url_util.h" |
| 135 #include "net/http/http_status_code.h" | 136 #include "net/http/http_status_code.h" |
| 136 #include "net/test/embedded_test_server/embedded_test_server.h" | 137 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 137 #include "net/test/embedded_test_server/http_request.h" | 138 #include "net/test/embedded_test_server/http_request.h" |
| 138 #include "net/test/embedded_test_server/http_response.h" | 139 #include "net/test/embedded_test_server/http_response.h" |
| 139 #include "net/url_request/test_url_fetcher_factory.h" | 140 #include "net/url_request/test_url_fetcher_factory.h" |
| 140 #include "net/url_request/url_fetcher_delegate.h" | 141 #include "net/url_request/url_fetcher_delegate.h" |
| 141 #include "net/url_request/url_request_status.h" | 142 #include "net/url_request/url_request_status.h" |
| 142 #include "policy/policy_constants.h" | |
| 143 #include "testing/gmock/include/gmock/gmock.h" | 143 #include "testing/gmock/include/gmock/gmock.h" |
| 144 #include "third_party/icu/source/common/unicode/locid.h" | 144 #include "third_party/icu/source/common/unicode/locid.h" |
| 145 #include "ui/base/ime/chromeos/extension_ime_util.h" | 145 #include "ui/base/ime/chromeos/extension_ime_util.h" |
| 146 #include "ui/base/ime/chromeos/input_method_descriptor.h" | 146 #include "ui/base/ime/chromeos/input_method_descriptor.h" |
| 147 #include "ui/base/ime/chromeos/input_method_manager.h" | 147 #include "ui/base/ime/chromeos/input_method_manager.h" |
| 148 #include "ui/base/l10n/l10n_util.h" | 148 #include "ui/base/l10n/l10n_util.h" |
| 149 #include "ui/base/window_open_disposition.h" | 149 #include "ui/base/window_open_disposition.h" |
| 150 #include "ui/gfx/image/image_skia.h" | 150 #include "ui/gfx/image/image_skia.h" |
| 151 #include "ui/views/widget/widget.h" | 151 #include "ui/views/widget/widget.h" |
| 152 #include "url/gurl.h" | 152 #include "url/gurl.h" |
| (...skipping 2291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2444 ASSERT_TRUE(content::ExecuteScript(contents_, | 2444 ASSERT_TRUE(content::ExecuteScript(contents_, |
| 2445 "$('tos-accept-button').click();")); | 2445 "$('tos-accept-button').click();")); |
| 2446 | 2446 |
| 2447 WaitForSessionStart(); | 2447 WaitForSessionStart(); |
| 2448 } | 2448 } |
| 2449 | 2449 |
| 2450 INSTANTIATE_TEST_CASE_P(TermsOfServiceDownloadTestInstance, | 2450 INSTANTIATE_TEST_CASE_P(TermsOfServiceDownloadTestInstance, |
| 2451 TermsOfServiceDownloadTest, testing::Bool()); | 2451 TermsOfServiceDownloadTest, testing::Bool()); |
| 2452 | 2452 |
| 2453 } // namespace policy | 2453 } // namespace policy |
| OLD | NEW |