OLD | NEW |
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 Loading... |
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 |
OLD | NEW |