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

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

Issue 10829032: Remove unused chromeos::EulaScreenActor::IsTpmEnabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and fix copyright year Created 8 years, 4 months 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/chromeos/cros/cros_library.h" 8 #include "chrome/browser/chromeos/cros/cros_library.h"
9 #include "chrome/browser/chromeos/cros/cryptohome_library.h" 9 #include "chrome/browser/chromeos/cros/cryptohome_library.h"
10 #include "chrome/browser/chromeos/customization_document.h" 10 #include "chrome/browser/chromeos/customization_document.h"
(...skipping 29 matching lines...) Expand all
40 40
41 void EulaScreen::Hide() { 41 void EulaScreen::Hide() {
42 if (actor_) 42 if (actor_)
43 actor_->Hide(); 43 actor_->Hide();
44 } 44 }
45 45
46 std::string EulaScreen::GetName() const { 46 std::string EulaScreen::GetName() const {
47 return WizardController::kEulaScreenName; 47 return WizardController::kEulaScreenName;
48 } 48 }
49 49
50 bool EulaScreen::IsTpmEnabled() const {
51 return chromeos::CrosLibrary::Get()->GetCryptohomeLibrary()->TpmIsEnabled();
52 }
53
54 GURL EulaScreen::GetOemEulaUrl() const { 50 GURL EulaScreen::GetOemEulaUrl() const {
55 const StartupCustomizationDocument* customization = 51 const StartupCustomizationDocument* customization =
56 StartupCustomizationDocument::GetInstance(); 52 StartupCustomizationDocument::GetInstance();
57 if (customization->IsReady()) { 53 if (customization->IsReady()) {
58 std::string locale = customization->initial_locale(); 54 std::string locale = customization->initial_locale();
59 std::string eula_page = customization->GetEULAPage(locale); 55 std::string eula_page = customization->GetEULAPage(locale);
60 if (!eula_page.empty()) 56 if (!eula_page.empty())
61 return GURL(eula_page); 57 return GURL(eula_page);
62 58
63 VLOG(1) << "No eula found for locale: " << locale; 59 VLOG(1) << "No eula found for locale: " << locale;
(...skipping 28 matching lines...) Expand all
92 bool EulaScreen::IsUsageStatsEnabled() const { 88 bool EulaScreen::IsUsageStatsEnabled() const {
93 return get_screen_observer()->GetUsageStatisticsReporting(); 89 return get_screen_observer()->GetUsageStatisticsReporting();
94 } 90 }
95 91
96 void EulaScreen::OnActorDestroyed(EulaScreenActor* actor) { 92 void EulaScreen::OnActorDestroyed(EulaScreenActor* actor) {
97 if (actor_ == actor) 93 if (actor_ == actor)
98 actor_ = NULL; 94 actor_ = NULL;
99 } 95 }
100 96
101 } // namespace chromeos 97 } // 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