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

Unified Diff: chrome/browser/image_decoder.h

Issue 1114003002: Replace the RepeatingTimer in ImageDecoder with a DelayTimer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | chrome/browser/image_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/image_decoder.h
diff --git a/chrome/browser/image_decoder.h b/chrome/browser/image_decoder.h
index ca7604350e97ea63b229a339666faa49bd1a6002..657f61a4f210db28c86af42b82cdf6b134b2058b 100644
--- a/chrome/browser/image_decoder.h
+++ b/chrome/browser/image_decoder.h
@@ -142,10 +142,7 @@ class ImageDecoder : public content::UtilityProcessHostClient {
base::WeakPtr<content::UtilityProcessHost> utility_process_host_;
// Calls StopBatchMode() after |kBatchModeTimeoutSeconds| have elapsed.
Anand Mistry (off Chromium) 2015/04/30 06:14:43 nit: ...since the last decoding request was starte
- base::RepeatingTimer<ImageDecoder> batch_mode_timer_;
-
- // The time Start() was last called.
- base::TimeTicks last_request_;
+ scoped_ptr<base::DelayTimer<ImageDecoder>> batch_mode_timer_;
DISALLOW_COPY_AND_ASSIGN(ImageDecoder);
};
« no previous file with comments | « no previous file | chrome/browser/image_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698