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

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

Issue 14208014: Simplify adding callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/update_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/update_screen_handler.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 9 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
10 #include "grit/chromium_strings.h" 10 #include "grit/chromium_strings.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 CallJS("cr.ui.Oobe.showUpdateCurtain", visible_value); 134 CallJS("cr.ui.Oobe.showUpdateCurtain", visible_value);
135 } 135 }
136 136
137 void UpdateScreenHandler::RegisterMessages() { 137 void UpdateScreenHandler::RegisterMessages() {
138 #if !defined(OFFICIAL_BUILD) 138 #if !defined(OFFICIAL_BUILD)
139 AddCallback("cancelUpdate", &UpdateScreenHandler::HandleUpdateCancel); 139 AddCallback("cancelUpdate", &UpdateScreenHandler::HandleUpdateCancel);
140 #endif 140 #endif
141 } 141 }
142 142
143 #if !defined(OFFICIAL_BUILD) 143 #if !defined(OFFICIAL_BUILD)
144 void UpdateScreenHandler::HandleUpdateCancel(const base::ListValue* args) { 144 void UpdateScreenHandler::HandleUpdateCancel() {
145 DCHECK(args && args->empty());
146 screen_->CancelUpdate(); 145 screen_->CancelUpdate();
147 } 146 }
148 #endif 147 #endif
149 148
150 } // namespace chromeos 149 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698