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

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

Issue 598673002: Restore 'cancel' translation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/sim_unlock_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 268
269 void SimUnlockUIHTMLSource::StartDataRequest( 269 void SimUnlockUIHTMLSource::StartDataRequest(
270 const std::string& path, 270 const std::string& path,
271 int render_process_id, 271 int render_process_id,
272 int render_frame_id, 272 int render_frame_id,
273 const content::URLDataSource::GotDataCallback& callback) { 273 const content::URLDataSource::GotDataCallback& callback) {
274 base::DictionaryValue strings; 274 base::DictionaryValue strings;
275 strings.SetString("title", 275 strings.SetString("title",
276 l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_ENTER_PIN_TITLE)); 276 l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_ENTER_PIN_TITLE));
277 strings.SetString("ok", l10n_util::GetStringUTF16(IDS_OK)); 277 strings.SetString("ok", l10n_util::GetStringUTF16(IDS_OK));
278 strings.SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL));
278 strings.SetString("enterPinTitle", 279 strings.SetString("enterPinTitle",
279 l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_ENTER_PIN_TITLE)); 280 l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_ENTER_PIN_TITLE));
280 strings.SetString("enterPinMessage", 281 strings.SetString("enterPinMessage",
281 l10n_util::GetStringUTF16(IDS_SIM_ENTER_PIN_MESSAGE)); 282 l10n_util::GetStringUTF16(IDS_SIM_ENTER_PIN_MESSAGE));
282 strings.SetString("enterPinTriesMessage", 283 strings.SetString("enterPinTriesMessage",
283 l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_ENTER_PIN_TRIES_MESSAGE)); 284 l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_ENTER_PIN_TRIES_MESSAGE));
284 strings.SetString("incorrectPinTriesMessage", 285 strings.SetString("incorrectPinTriesMessage",
285 l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_INCORRECT_PIN_TRIES_MESSAGE)); 286 l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_INCORRECT_PIN_TRIES_MESSAGE));
286 strings.SetString("incorrectPinTitle", 287 strings.SetString("incorrectPinTitle",
287 l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_INCORRECT_PIN_TITLE)); 288 l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_INCORRECT_PIN_TITLE));
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 SimUnlockHandler* handler = new SimUnlockHandler(); 760 SimUnlockHandler* handler = new SimUnlockHandler();
760 web_ui->AddMessageHandler(handler); 761 web_ui->AddMessageHandler(handler);
761 SimUnlockUIHTMLSource* html_source = new SimUnlockUIHTMLSource(); 762 SimUnlockUIHTMLSource* html_source = new SimUnlockUIHTMLSource();
762 763
763 // Set up the chrome://sim-unlock/ source. 764 // Set up the chrome://sim-unlock/ source.
764 Profile* profile = Profile::FromWebUI(web_ui); 765 Profile* profile = Profile::FromWebUI(web_ui);
765 content::URLDataSource::Add(profile, html_source); 766 content::URLDataSource::Add(profile, html_source);
766 } 767 }
767 768
768 } // namespace chromeos 769 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698