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

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

Issue 2549373005: cros: Refactor of BaseScreen::GetName to BaseScreen::screen_id. (Closed)
Patch Set: Nits Created 3 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/update_model.h" 5 #include "chrome/browser/chromeos/login/screens/update_model.h"
6 6
7 #include "chrome/browser/chromeos/login/wizard_controller.h" 7 #include "chrome/browser/chromeos/login/wizard_controller.h"
8 8
9 namespace chromeos { 9 namespace chromeos {
10 10
11 const char UpdateModel::kUserActionCancelUpdateShortcut[] = "cancel-update"; 11 const char UpdateModel::kUserActionCancelUpdateShortcut[] = "cancel-update";
12 const char UpdateModel::kContextKeyEstimatedTimeLeftSec[] = "time-left-sec"; 12 const char UpdateModel::kContextKeyEstimatedTimeLeftSec[] = "time-left-sec";
13 const char UpdateModel::kContextKeyShowEstimatedTimeLeft[] = "show-time-left"; 13 const char UpdateModel::kContextKeyShowEstimatedTimeLeft[] = "show-time-left";
14 const char UpdateModel::kContextKeyUpdateMessage[] = "update-msg"; 14 const char UpdateModel::kContextKeyUpdateMessage[] = "update-msg";
15 const char UpdateModel::kContextKeyShowCurtain[] = "show-curtain"; 15 const char UpdateModel::kContextKeyShowCurtain[] = "show-curtain";
16 const char UpdateModel::kContextKeyShowProgressMessage[] = "show-progress-msg"; 16 const char UpdateModel::kContextKeyShowProgressMessage[] = "show-progress-msg";
17 const char UpdateModel::kContextKeyProgress[] = "progress"; 17 const char UpdateModel::kContextKeyProgress[] = "progress";
18 const char UpdateModel::kContextKeyProgressMessage[] = "progress-msg"; 18 const char UpdateModel::kContextKeyProgressMessage[] = "progress-msg";
19 const char UpdateModel::kContextKeyCancelUpdateShortcutEnabled[] = 19 const char UpdateModel::kContextKeyCancelUpdateShortcutEnabled[] =
20 "cancel-update-enabled"; 20 "cancel-update-enabled";
21 21
22 UpdateModel::UpdateModel(BaseScreenDelegate* base_screen_delegate) 22 UpdateModel::UpdateModel(BaseScreenDelegate* base_screen_delegate)
23 : BaseScreen(base_screen_delegate) { 23 : BaseScreen(base_screen_delegate, WizardController::kUpdateScreenName) {}
24 }
25 24
26 UpdateModel::~UpdateModel() { 25 UpdateModel::~UpdateModel() {}
27 }
28
29 std::string UpdateModel::GetName() const {
30 return WizardController::kUpdateScreenName;
31 }
32 26
33 } // namespace chromeos 27 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698