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

Side by Side Diff: chrome/browser/chromeos/login/screens/reset_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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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/reset_screen.h" 5 #include "chrome/browser/chromeos/login/screens/reset_screen.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 context_.SetBoolean(kContextKeyIsOfficialBuild, true); 42 context_.SetBoolean(kContextKeyIsOfficialBuild, true);
43 #endif 43 #endif
44 } 44 }
45 45
46 ResetScreen::~ResetScreen() { 46 ResetScreen::~ResetScreen() {
47 if (view_) 47 if (view_)
48 view_->Unbind(); 48 view_->Unbind();
49 DBusThreadManager::Get()->GetUpdateEngineClient()->RemoveObserver(this); 49 DBusThreadManager::Get()->GetUpdateEngineClient()->RemoveObserver(this);
50 } 50 }
51 51
52 void ResetScreen::PrepareToShow() {
53 if (view_)
54 view_->PrepareToShow();
55 }
56
57 void ResetScreen::Show() { 52 void ResetScreen::Show() {
58 if (view_) 53 if (view_)
59 view_->Show(); 54 view_->Show();
60 55
61 int dialog_type = -1; // used by UMA metrics. 56 int dialog_type = -1; // used by UMA metrics.
62 57
63 ContextEditor context_editor = GetContextEditor(); 58 ContextEditor context_editor = GetContextEditor();
64 59
65 bool restart_required = !base::CommandLine::ForCurrentProcess()->HasSwitch( 60 bool restart_required = !base::CommandLine::ForCurrentProcess()->HasSwitch(
66 switches::kFirstExecAfterBoot); 61 switches::kFirstExecAfterBoot);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 reset::DIALOG_VIEW_TYPE_SIZE); 238 reset::DIALOG_VIEW_TYPE_SIZE);
244 239
245 GetContextEditor().SetBoolean(kContextKeyIsRollbackAvailable, can_rollback); 240 GetContextEditor().SetBoolean(kContextKeyIsRollbackAvailable, can_rollback);
246 } 241 }
247 242
248 ErrorScreen* ResetScreen::GetErrorScreen() { 243 ErrorScreen* ResetScreen::GetErrorScreen() {
249 return get_base_screen_delegate()->GetErrorScreen(); 244 return get_base_screen_delegate()->GetErrorScreen();
250 } 245 }
251 246
252 } // namespace chromeos 247 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/reset_screen.h ('k') | chrome/browser/chromeos/login/screens/reset_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698