Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1509)

Side by Side Diff: chrome/browser/chromeos/login/eula_screen.cc

Issue 11473019: [cros,rlz] Remove RLZ checkbox from OOBE UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add back old strings Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/eula_screen.h ('k') | chrome/browser/chromeos/login/eula_screen_actor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698