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

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

Issue 5283002: Addressing the comment in codereview.chromium.org/5151006. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: timer fix Created 10 years, 1 month 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 | « no previous file | chrome/browser/resources/offline_load.html » ('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 236a9924c1ac83181dff340e1615f596d7374cff..32e0202200335b765607195726a9f0e22fbb0bf2 100644
--- a/chrome/browser/chromeos/offline/offline_load_page.cc
+++ b/chrome/browser/chromeos/offline/offline_load_page.cc
@@ -88,9 +88,7 @@ std::string OfflineLoadPage::GetHTMLContents() {
kMaxBlankPeriod -
NetworkStateNotifier::GetOfflineDuration().InMilliseconds());
// Set the timeout to show the page.
- strings.SetString("on_load",
- WideToUTF16Hack(base::StringPrintf(L"startTimer(%ld)",
- time_to_wait)));
+ strings.SetInteger("timeToWait", static_cast<int>(time_to_wait));
// Button labels
SetString(&strings, "load_button", IDS_OFFLINE_LOAD_BUTTON);
SetString(&strings, "cancel_button", IDS_OFFLINE_CANCEL_BUTTON);
« no previous file with comments | « no previous file | chrome/browser/resources/offline_load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698