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

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

Issue 14208014: Simplify adding callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix, sync. Created 7 years, 8 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 | Annotate | Revision Log
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/ui/webui/chromeos/login/wrong_hwid_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/wrong_hwid_screen_handler.h"
6 6
7 #include "base/values.h"
8 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 7 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
9 #include "grit/chromium_strings.h" 8 #include "grit/chromium_strings.h"
10 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
11 10
12 namespace chromeos { 11 namespace chromeos {
13 12
14 WrongHWIDScreenHandler::WrongHWIDScreenHandler() 13 WrongHWIDScreenHandler::WrongHWIDScreenHandler()
15 : delegate_(NULL), show_on_init_(false) { 14 : delegate_(NULL), show_on_init_(false) {
16 } 15 }
17 16
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 if (show_on_init_) { 57 if (show_on_init_) {
59 Show(); 58 Show();
60 show_on_init_ = false; 59 show_on_init_ = false;
61 } 60 }
62 } 61 }
63 62
64 void WrongHWIDScreenHandler::RegisterMessages() { 63 void WrongHWIDScreenHandler::RegisterMessages() {
65 AddCallback("wrongHWIDOnSkip", &WrongHWIDScreenHandler::HandleOnSkip); 64 AddCallback("wrongHWIDOnSkip", &WrongHWIDScreenHandler::HandleOnSkip);
66 } 65 }
67 66
68 void WrongHWIDScreenHandler::HandleOnSkip(const base::ListValue* args) { 67 void WrongHWIDScreenHandler::HandleOnSkip() {
69 if (delegate_) 68 if (delegate_)
70 delegate_->OnExit(); 69 delegate_->OnExit();
71 } 70 }
72 71
73 } // namespace chromeos 72 } // namespace chromeos
74 73
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698