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

Unified Diff: chrome/browser/chromeos/offline/offline_load_page.cc

Issue 6693010: Use extension to show activation message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/renderer_host/offline_resource_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/offline/offline_load_page.cc
diff --git a/chrome/browser/chromeos/offline/offline_load_page.cc b/chrome/browser/chromeos/offline/offline_load_page.cc
index 965b39b1502f2f812ecbfad41fe6276c9222d0e2..10e462f8e32a1c8dcb0b7ce0537573e52432a5f1 100644
--- a/chrome/browser/chromeos/offline/offline_load_page.cc
+++ b/chrome/browser/chromeos/offline/offline_load_page.cc
@@ -82,18 +82,14 @@ std::string OfflineLoadPage::GetHTMLContents() {
kMaxBlankPeriod -
NetworkStateNotifier::GetOfflineDuration().InMilliseconds());
// Set the timeout to show the page.
- strings.SetInteger("timeToWait", static_cast<int>(time_to_wait));
+ strings.SetInteger("time_to_wait", static_cast<int>(time_to_wait));
// Button labels
SetString(&strings, "heading", IDS_OFFLINE_LOAD_HEADLINE);
SetString(&strings, "try_loading", IDS_OFFLINE_TRY_LOADING);
SetString(&strings, "network_settings", IDS_OFFLINE_NETWORK_SETTINGS);
// Activation
- SetString(&strings, "activation_heading", IDS_OFFLINE_ACTIVATION_HEADLINE);
- SetString(&strings, "activation_msg", IDS_OFFLINE_ACTIVATION_MESSAGE);
- SetString(&strings, "activation_button", IDS_OFFLINE_ACTIVATION_BUTTON);
- strings.SetString("display_activation",
- ShowActivationMessage() ? "block" : "none");
+ strings.SetBoolean("show_activation", ShowActivationMessage());
bool rtl = base::i18n::IsRTL();
strings.SetString("textdirection", rtl ? "rtl" : "ltr");
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/renderer_host/offline_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698