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/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" |
(...skipping 26 matching lines...) Expand all Loading... |
37 const string16 short_product_name = | 37 const string16 short_product_name = |
38 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME); | 38 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME); |
39 localized_strings->SetString("checkingForUpdatesMsg", | 39 localized_strings->SetString("checkingForUpdatesMsg", |
40 l10n_util::GetStringFUTF16(IDS_CHECKING_FOR_UPDATE_MSG, | 40 l10n_util::GetStringFUTF16(IDS_CHECKING_FOR_UPDATE_MSG, |
41 short_product_name)); | 41 short_product_name)); |
42 localized_strings->SetString("updateScreenTitle", | 42 localized_strings->SetString("updateScreenTitle", |
43 l10n_util::GetStringUTF16(IDS_UPDATE_SCREEN_TITLE)); | 43 l10n_util::GetStringUTF16(IDS_UPDATE_SCREEN_TITLE)); |
44 localized_strings->SetString("checkingForUpdates", | 44 localized_strings->SetString("checkingForUpdates", |
45 l10n_util::GetStringUTF16(IDS_CHECKING_FOR_UPDATES)); | 45 l10n_util::GetStringUTF16(IDS_CHECKING_FOR_UPDATES)); |
46 localized_strings->SetString("installingUpdateDesc", | 46 localized_strings->SetString("installingUpdateDesc", |
47 l10n_util::GetStringFUTF16(IDS_UPDATE_MSG, | 47 l10n_util::GetStringFUTF16(IDS_UPDATE_MSG, short_product_name)); |
48 short_product_name, short_product_name)); | |
49 localized_strings->SetString("downloadingTimeLeftLong", | 48 localized_strings->SetString("downloadingTimeLeftLong", |
50 l10n_util::GetStringUTF16(IDS_DOWNLOADING_TIME_LEFT_LONG)); | 49 l10n_util::GetStringUTF16(IDS_DOWNLOADING_TIME_LEFT_LONG)); |
51 localized_strings->SetString("downloadingTimeLeftStatusOneHour", | 50 localized_strings->SetString("downloadingTimeLeftStatusOneHour", |
52 l10n_util::GetStringUTF16(IDS_DOWNLOADING_TIME_LEFT_STATUS_ONE_HOUR)); | 51 l10n_util::GetStringUTF16(IDS_DOWNLOADING_TIME_LEFT_STATUS_ONE_HOUR)); |
53 localized_strings->SetString("downloadingTimeLeftStatusMinutes", | 52 localized_strings->SetString("downloadingTimeLeftStatusMinutes", |
54 l10n_util::GetStringUTF16(IDS_DOWNLOADING_TIME_LEFT_STATUS_MINUTES)); | 53 l10n_util::GetStringUTF16(IDS_DOWNLOADING_TIME_LEFT_STATUS_MINUTES)); |
55 localized_strings->SetString("downloadingTimeLeftSmall", | 54 localized_strings->SetString("downloadingTimeLeftSmall", |
56 l10n_util::GetStringUTF16(IDS_DOWNLOADING_TIME_LEFT_SMALL)); | 55 l10n_util::GetStringUTF16(IDS_DOWNLOADING_TIME_LEFT_SMALL)); |
57 #if !defined(OFFICIAL_BUILD) | 56 #if !defined(OFFICIAL_BUILD) |
58 localized_strings->SetString("cancelUpdateHint", | 57 localized_strings->SetString("cancelUpdateHint", |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 } | 141 } |
143 | 142 |
144 #if !defined(OFFICIAL_BUILD) | 143 #if !defined(OFFICIAL_BUILD) |
145 void UpdateScreenHandler::HandleUpdateCancel(const base::ListValue* args) { | 144 void UpdateScreenHandler::HandleUpdateCancel(const base::ListValue* args) { |
146 DCHECK(args && args->empty()); | 145 DCHECK(args && args->empty()); |
147 screen_->CancelUpdate(); | 146 screen_->CancelUpdate(); |
148 } | 147 } |
149 #endif | 148 #endif |
150 | 149 |
151 } // namespace chromeos | 150 } // namespace chromeos |
OLD | NEW |