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/eula_screen.h" | 5 #include "chrome/browser/chromeos/login/eula_screen.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
10 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 10 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 if (!eula_page.empty()) | 59 if (!eula_page.empty()) |
60 return GURL(eula_page); | 60 return GURL(eula_page); |
61 | 61 |
62 VLOG(1) << "No eula found for locale: " << locale; | 62 VLOG(1) << "No eula found for locale: " << locale; |
63 } else { | 63 } else { |
64 LOG(ERROR) << "No manifest found."; | 64 LOG(ERROR) << "No manifest found."; |
65 } | 65 } |
66 return GURL(); | 66 return GURL(); |
67 } | 67 } |
68 | 68 |
69 void EulaScreen::OnExit(bool accepted, | 69 void EulaScreen::OnExit(bool accepted, bool usage_stats_enabled) { |
70 bool usage_stats_enabled, | |
71 bool rlz_enabled) { | |
72 get_screen_observer()->SetUsageStatisticsReporting(usage_stats_enabled); | 70 get_screen_observer()->SetUsageStatisticsReporting(usage_stats_enabled); |
73 get_screen_observer()->SetRlzEnabled(rlz_enabled); | |
74 get_screen_observer()->OnExit(accepted | 71 get_screen_observer()->OnExit(accepted |
75 ? ScreenObserver::EULA_ACCEPTED | 72 ? ScreenObserver::EULA_ACCEPTED |
76 : ScreenObserver::EULA_BACK); | 73 : ScreenObserver::EULA_BACK); |
77 } | 74 } |
78 | 75 |
79 void EulaScreen::InitiatePasswordFetch() { | 76 void EulaScreen::InitiatePasswordFetch() { |
80 if (tpm_password_.empty()) { | 77 if (tpm_password_.empty()) { |
81 password_fetcher_.Fetch(); | 78 password_fetcher_.Fetch(); |
82 // Will call actor after password has been fetched. | 79 // Will call actor after password has been fetched. |
83 } else if (actor_) { | 80 } else if (actor_) { |
(...skipping 10 matching lines...) Expand all Loading... |
94 bool EulaScreen::IsUsageStatsEnabled() const { | 91 bool EulaScreen::IsUsageStatsEnabled() const { |
95 return get_screen_observer()->GetUsageStatisticsReporting(); | 92 return get_screen_observer()->GetUsageStatisticsReporting(); |
96 } | 93 } |
97 | 94 |
98 void EulaScreen::OnActorDestroyed(EulaScreenActor* actor) { | 95 void EulaScreen::OnActorDestroyed(EulaScreenActor* actor) { |
99 if (actor_ == actor) | 96 if (actor_ == actor) |
100 actor_ = NULL; | 97 actor_ = NULL; |
101 } | 98 } |
102 | 99 |
103 } // namespace chromeos | 100 } // namespace chromeos |
OLD | NEW |