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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/enable_debugging_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 (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/ui/webui/chromeos/login/enable_debugging_screen_handler .h" 5 #include "chrome/browser/ui/webui/chromeos/login/enable_debugging_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/values.h" 10 #include "base/values.h"
(...skipping 17 matching lines...) Expand all
28 28
29 namespace { 29 namespace {
30 30
31 const char kJsScreenPath[] = "login.EnableDebuggingScreen"; 31 const char kJsScreenPath[] = "login.EnableDebuggingScreen";
32 32
33 } // namespace 33 } // namespace
34 34
35 namespace chromeos { 35 namespace chromeos {
36 36
37 EnableDebuggingScreenHandler::EnableDebuggingScreenHandler() 37 EnableDebuggingScreenHandler::EnableDebuggingScreenHandler()
38 : BaseScreenHandler(kJsScreenPath), 38 : weak_ptr_factory_(this) {
39 delegate_(NULL), 39 set_call_js_prefix(kJsScreenPath);
40 show_on_init_(false),
41 weak_ptr_factory_(this) {
42 } 40 }
43 41
44 EnableDebuggingScreenHandler::~EnableDebuggingScreenHandler() { 42 EnableDebuggingScreenHandler::~EnableDebuggingScreenHandler() {
45 if (delegate_) 43 if (delegate_)
46 delegate_->OnActorDestroyed(this); 44 delegate_->OnActorDestroyed(this);
47 } 45 }
48 46
49 void EnableDebuggingScreenHandler::ShowWithParams() { 47 void EnableDebuggingScreenHandler::ShowWithParams() {
50 ShowScreen(OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING); 48 ShowScreen(OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING);
51 49
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 LoginWebDialog* dialog = new LoginWebDialog( 282 LoginWebDialog* dialog = new LoginWebDialog(
285 Profile::FromWebUI(web_ui()), 283 Profile::FromWebUI(web_ui()),
286 NULL, 284 NULL,
287 GetNativeWindow(), 285 GetNativeWindow(),
288 base::string16(), 286 base::string16(),
289 data_url); 287 data_url);
290 dialog->Show(); 288 dialog->Show();
291 } 289 }
292 290
293 } // namespace chromeos 291 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698