| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "content/browser/webui/web_ui.h" |
| 11 #include "grit/chromium_strings.h" | 12 #include "grit/chromium_strings.h" |
| 12 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
| 13 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 // Update screen ID. | 18 // Update screen ID. |
| 18 const char kUpdateScreen[] = "update"; | 19 const char kUpdateScreen[] = "update"; |
| 19 | 20 |
| 20 } // namespace | 21 } // namespace |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 116 } |
| 116 | 117 |
| 117 #if !defined(OFFICIAL_BUILD) | 118 #if !defined(OFFICIAL_BUILD) |
| 118 void UpdateScreenHandler::HandleUpdateCancel(const base::ListValue* args) { | 119 void UpdateScreenHandler::HandleUpdateCancel(const base::ListValue* args) { |
| 119 DCHECK(args && args->empty()); | 120 DCHECK(args && args->empty()); |
| 120 screen_->CancelUpdate(); | 121 screen_->CancelUpdate(); |
| 121 } | 122 } |
| 122 #endif | 123 #endif |
| 123 | 124 |
| 124 } // namespace chromeos | 125 } // namespace chromeos |
| OLD | NEW |