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

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: 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" 7 #include "base/values.h"
bartfab (slow) 2013/04/16 17:04:35 Nit: No longer used.
ygorshenin1 2013/04/16 17:52:43 Done.
8 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 8 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
9 #include "grit/chromium_strings.h" 9 #include "grit/chromium_strings.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 WrongHWIDScreenHandler::WrongHWIDScreenHandler() 14 WrongHWIDScreenHandler::WrongHWIDScreenHandler()
15 : delegate_(NULL), show_on_init_(false) { 15 : delegate_(NULL), show_on_init_(false) {
16 } 16 }
17 17
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 if (show_on_init_) { 58 if (show_on_init_) {
59 Show(); 59 Show();
60 show_on_init_ = false; 60 show_on_init_ = false;
61 } 61 }
62 } 62 }
63 63
64 void WrongHWIDScreenHandler::RegisterMessages() { 64 void WrongHWIDScreenHandler::RegisterMessages() {
65 AddCallback("wrongHWIDOnSkip", &WrongHWIDScreenHandler::HandleOnSkip); 65 AddCallback("wrongHWIDOnSkip", &WrongHWIDScreenHandler::HandleOnSkip);
66 } 66 }
67 67
68 void WrongHWIDScreenHandler::HandleOnSkip(const base::ListValue* args) { 68 void WrongHWIDScreenHandler::HandleOnSkip() {
69 if (delegate_) 69 if (delegate_)
70 delegate_->OnExit(); 70 delegate_->OnExit();
71 } 71 }
72 72
73 } // namespace chromeos 73 } // namespace chromeos
74 74
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698