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

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

Issue 8271025: Moved mobile activation into its own modal dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 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/mobile_setup_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 strings.SetString("activating_header", 419 strings.SetString("activating_header",
420 l10n_util::GetStringUTF16(IDS_MOBILE_ACTIVATING_HEADER)); 420 l10n_util::GetStringUTF16(IDS_MOBILE_ACTIVATING_HEADER));
421 strings.SetString("completed_header", 421 strings.SetString("completed_header",
422 l10n_util::GetStringUTF16(IDS_MOBILE_COMPLETED_HEADER)); 422 l10n_util::GetStringUTF16(IDS_MOBILE_COMPLETED_HEADER));
423 strings.SetString("please_wait", 423 strings.SetString("please_wait",
424 l10n_util::GetStringUTF16(IDS_MOBILE_PLEASE_WAIT)); 424 l10n_util::GetStringUTF16(IDS_MOBILE_PLEASE_WAIT));
425 strings.SetString("completed_text", 425 strings.SetString("completed_text",
426 l10n_util::GetStringUTF16(IDS_MOBILE_COMPLETED_TEXT)); 426 l10n_util::GetStringUTF16(IDS_MOBILE_COMPLETED_TEXT));
427 strings.SetString("close_button", 427 strings.SetString("close_button",
428 l10n_util::GetStringUTF16(IDS_CLOSE)); 428 l10n_util::GetStringUTF16(IDS_CLOSE));
429 strings.SetString("cancel_button",
430 l10n_util::GetStringUTF16(IDS_CANCEL));
431 strings.SetString("cancel_question",
432 l10n_util::GetStringUTF16(IDS_MOBILE_CANCEL_ACTIVATION));
429 SetFontAndTextDirection(&strings); 433 SetFontAndTextDirection(&strings);
430 434
431 static const base::StringPiece html( 435 static const base::StringPiece html(
432 ResourceBundle::GetSharedInstance().GetRawDataResource( 436 ResourceBundle::GetSharedInstance().GetRawDataResource(
433 IDR_MOBILE_SETUP_PAGE_HTML)); 437 IDR_MOBILE_SETUP_PAGE_HTML));
434 438
435 std::string full_html = jstemplate_builder::GetI18nTemplateHtml(html, 439 std::string full_html = jstemplate_builder::GetI18nTemplateHtml(html,
436 &strings); 440 &strings);
437 441
438 SendResponse(request_id, base::RefCountedString::TakeString(&full_html)); 442 SendResponse(request_id, base::RefCountedString::TakeString(&full_html));
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 MobileSetupHandler* handler = new MobileSetupHandler(service_path); 1334 MobileSetupHandler* handler = new MobileSetupHandler(service_path);
1331 AddMessageHandler((handler)->Attach(this)); 1335 AddMessageHandler((handler)->Attach(this));
1332 handler->Init(contents); 1336 handler->Init(contents);
1333 MobileSetupUIHTMLSource* html_source = 1337 MobileSetupUIHTMLSource* html_source =
1334 new MobileSetupUIHTMLSource(service_path); 1338 new MobileSetupUIHTMLSource(service_path);
1335 1339
1336 // Set up the chrome://mobilesetup/ source. 1340 // Set up the chrome://mobilesetup/ source.
1337 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); 1341 Profile* profile = Profile::FromBrowserContext(contents->browser_context());
1338 profile->GetChromeURLDataManager()->AddDataSource(html_source); 1342 profile->GetChromeURLDataManager()->AddDataSource(html_source);
1339 } 1343 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698