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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/kiosk_autolaunch_screen_handler.cc

Issue 2701023003: cros: Move call js prefix out of ctor. (Closed)
Patch Set: Created 3 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/ui/webui/chromeos/login/kiosk_autolaunch_screen_handler .h" 5 #include "chrome/browser/ui/webui/chromeos/login/kiosk_autolaunch_screen_handler .h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 14 matching lines...) Expand all
25 #include "ui/base/webui/web_ui_util.h" 25 #include "ui/base/webui/web_ui_util.h"
26 26
27 namespace { 27 namespace {
28 28
29 const char kJsScreenPath[] = "login.AutolaunchScreen"; 29 const char kJsScreenPath[] = "login.AutolaunchScreen";
30 30
31 } // namespace 31 } // namespace
32 32
33 namespace chromeos { 33 namespace chromeos {
34 34
35 KioskAutolaunchScreenHandler::KioskAutolaunchScreenHandler() 35 KioskAutolaunchScreenHandler::KioskAutolaunchScreenHandler() {
36 : BaseScreenHandler(kJsScreenPath), 36 set_call_js_prefix(kJsScreenPath);
37 delegate_(NULL),
38 show_on_init_(false),
39 is_visible_(false) {
40 KioskAppManager::Get()->AddObserver(this); 37 KioskAppManager::Get()->AddObserver(this);
41 } 38 }
42 39
43 KioskAutolaunchScreenHandler::~KioskAutolaunchScreenHandler() { 40 KioskAutolaunchScreenHandler::~KioskAutolaunchScreenHandler() {
44 if (delegate_) 41 if (delegate_)
45 delegate_->OnActorDestroyed(this); 42 delegate_->OnActorDestroyed(this);
46 43
47 KioskAppManager::Get()->RemoveObserver(this); 44 KioskAppManager::Get()->RemoveObserver(this);
48 } 45 }
49 46
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void KioskAutolaunchScreenHandler::OnKioskAppsSettingsChanged() { 150 void KioskAutolaunchScreenHandler::OnKioskAppsSettingsChanged() {
154 UpdateKioskApp(); 151 UpdateKioskApp();
155 } 152 }
156 153
157 void KioskAutolaunchScreenHandler::OnKioskAppDataChanged( 154 void KioskAutolaunchScreenHandler::OnKioskAppDataChanged(
158 const std::string& app_id) { 155 const std::string& app_id) {
159 UpdateKioskApp(); 156 UpdateKioskApp();
160 } 157 }
161 158
162 } // namespace chromeos 159 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698