OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "platform_verification_flow.h" | 5 #include "platform_verification_flow.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "chrome/browser/chromeos/attestation/attestation_ca_client.h" | 10 #include "chrome/browser/chromeos/attestation/attestation_ca_client.h" |
11 #include "chrome/browser/chromeos/attestation/attestation_signed_data.pb.h" | 11 #include "chrome/browser/chromeos/attestation/attestation_signed_data.pb.h" |
12 #include "chrome/browser/chromeos/attestation/platform_verification_dialog.h" | 12 #include "chrome/browser/chromeos/attestation/platform_verification_dialog.h" |
13 #include "chrome/browser/chromeos/login/user_manager.h" | 13 #include "chrome/browser/chromeos/login/user_manager.h" |
14 #include "chrome/browser/chromeos/settings/cros_settings.h" | 14 #include "chrome/browser/chromeos/settings/cros_settings.h" |
15 #include "chrome/browser/chromeos/system/statistics_provider.h" | |
16 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 15 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
18 #include "chromeos/attestation/attestation_flow.h" | 17 #include "chromeos/attestation/attestation_flow.h" |
19 #include "chromeos/cryptohome/async_method_caller.h" | 18 #include "chromeos/cryptohome/async_method_caller.h" |
20 #include "chromeos/dbus/cryptohome_client.h" | 19 #include "chromeos/dbus/cryptohome_client.h" |
21 #include "chromeos/dbus/dbus_thread_manager.h" | 20 #include "chromeos/dbus/dbus_thread_manager.h" |
| 21 #include "chromeos/system/statistics_provider.h" |
22 #include "components/user_prefs/pref_registry_syncable.h" | 22 #include "components/user_prefs/pref_registry_syncable.h" |
23 #include "components/user_prefs/user_prefs.h" | 23 #include "components/user_prefs/user_prefs.h" |
24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
25 #include "content/public/browser/user_metrics.h" | 25 #include "content/public/browser/user_metrics.h" |
26 #include "content/public/browser/web_contents.h" | 26 #include "content/public/browser/web_contents.h" |
27 | 27 |
28 namespace { | 28 namespace { |
29 // A switch which allows consent to be given on the command line. | 29 // A switch which allows consent to be given on the command line. |
30 // TODO(dkrahn): Remove this when UI has been implemented (crbug.com/270908). | 30 // TODO(dkrahn): Remove this when UI has been implemented (crbug.com/270908). |
31 const char kAutoApproveSwitch[] = | 31 const char kAutoApproveSwitch[] = |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 bool allow_domain) { | 421 bool allow_domain) { |
422 PrefService* pref_service = GetPrefs(web_contents); | 422 PrefService* pref_service = GetPrefs(web_contents); |
423 CHECK(pref_service); | 423 CHECK(pref_service); |
424 DictionaryPrefUpdate updater(pref_service, prefs::kRAConsentDomains); | 424 DictionaryPrefUpdate updater(pref_service, prefs::kRAConsentDomains); |
425 const GURL& url = GetURL(web_contents); | 425 const GURL& url = GetURL(web_contents); |
426 updater->SetBoolean(url.host(), allow_domain); | 426 updater->SetBoolean(url.host(), allow_domain); |
427 } | 427 } |
428 | 428 |
429 } // namespace attestation | 429 } // namespace attestation |
430 } // namespace chromeos | 430 } // namespace chromeos |
OLD | NEW |