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

Side by Side Diff: chrome/browser/chromeos/login/screens/terms_of_service_screen.cc

Issue 2555783003: cros: Remove unused method (Closed)
Patch Set: Created 4 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
OLDNEW
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/login/screens/terms_of_service_screen.h" 5 #include "chrome/browser/chromeos/login/screens/terms_of_service_screen.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 22 matching lines...) Expand all
33 DCHECK(actor_); 33 DCHECK(actor_);
34 if (actor_) 34 if (actor_)
35 actor_->SetDelegate(this); 35 actor_->SetDelegate(this);
36 } 36 }
37 37
38 TermsOfServiceScreen::~TermsOfServiceScreen() { 38 TermsOfServiceScreen::~TermsOfServiceScreen() {
39 if (actor_) 39 if (actor_)
40 actor_->SetDelegate(NULL); 40 actor_->SetDelegate(NULL);
41 } 41 }
42 42
43 void TermsOfServiceScreen::PrepareToShow() {
44 }
45
46 void TermsOfServiceScreen::Show() { 43 void TermsOfServiceScreen::Show() {
47 if (!actor_) 44 if (!actor_)
48 return; 45 return;
49 46
50 // Set the domain name whose Terms of Service are being shown. 47 // Set the domain name whose Terms of Service are being shown.
51 policy::BrowserPolicyConnectorChromeOS* connector = 48 policy::BrowserPolicyConnectorChromeOS* connector =
52 g_browser_process->platform_part()->browser_policy_connector_chromeos(); 49 g_browser_process->platform_part()->browser_policy_connector_chromeos();
53 actor_->SetDomain(connector->GetEnterpriseDomain()); 50 actor_->SetDomain(connector->GetEnterpriseDomain());
54 51
55 // Show the screen. 52 // Show the screen.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 !source->GetResponseAsString(&terms_of_service)) { 141 !source->GetResponseAsString(&terms_of_service)) {
145 actor_->OnLoadError(); 142 actor_->OnLoadError();
146 } else { 143 } else {
147 // If the Terms of Service were downloaded successfully, show them to the 144 // If the Terms of Service were downloaded successfully, show them to the
148 // user. 145 // user.
149 actor_->OnLoadSuccess(terms_of_service); 146 actor_->OnLoadSuccess(terms_of_service);
150 } 147 }
151 } 148 }
152 149
153 } // namespace chromeos 150 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/terms_of_service_screen.h ('k') | chrome/browser/chromeos/login/screens/update_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698