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

Unified Diff: chrome/browser/instant/instant_controller.cc

Issue 7825026: Revert "Currently, base/timer.cc calls PostTask with FROM_HERE as the Location, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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/browser/history/top_sites.cc ('k') | chrome/browser/instant/instant_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_controller.cc
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index f24cf5e438a4c75711bc54798e981738ce5a6534..deac86678b1db1de0e7bd84605d77cb6b053c01e 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -520,7 +520,7 @@ void InstantController::InstantStatusChanged(InstantLoader* loader) {
// Status isn't ok, start a timer that when fires shows the result. This
// delays showing 403 pages and the like.
show_timer_.Stop();
- show_timer_.Start(FROM_HERE,
+ show_timer_.Start(
base::TimeDelta::FromMilliseconds(kShowDelayMS),
this, &InstantController::ShowTimerFired);
UpdateDisplayableLoader();
@@ -669,8 +669,7 @@ void InstantController::ScheduleUpdate(const GURL& url) {
scheduled_url_ = url;
update_timer_.Stop();
- update_timer_.Start(FROM_HERE,
- base::TimeDelta::FromMilliseconds(kUpdateDelayMS),
+ update_timer_.Start(base::TimeDelta::FromMilliseconds(kUpdateDelayMS),
this, &InstantController::ProcessScheduledUpdate);
}
@@ -725,7 +724,7 @@ void InstantController::UpdateLoader(const TemplateURL* template_url,
user_text, verbatim, suggested_text)) {
show_timer_.Stop();
if (!new_loader->http_status_ok()) {
- show_timer_.Start(FROM_HERE,
+ show_timer_.Start(
base::TimeDelta::FromMilliseconds(kShowDelayMS),
this, &InstantController::ShowTimerFired);
}
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/instant/instant_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698