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

Unified Diff: chrome/common/important_file_writer.h

Issue 342068: Third patch in getting rid of caching MessageLoop pointers and always using C... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/histogram_synchronizer.cc ('k') | chrome/common/important_file_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/important_file_writer.h
===================================================================
--- chrome/common/important_file_writer.h (revision 30650)
+++ chrome/common/important_file_writer.h (working copy)
@@ -48,11 +48,9 @@
};
// Initialize the writer.
- // |path| is the name of file to write. Disk operations will be executed on
- // |backend_thread|, or current thread if |backend_thread| is NULL.
- //
+ // |path| is the name of file to write.
// All non-const methods, ctor and dtor must be called on the same thread.
- ImportantFileWriter(const FilePath& path, const base::Thread* backend_thread);
+ ImportantFileWriter(const FilePath& path);
// You have to ensure that there are no pending writes at the moment
// of destruction.
@@ -91,9 +89,6 @@
// Path being written to.
const FilePath path_;
- // Thread on which disk operation run. NULL means no separate thread is used.
- const base::Thread* backend_thread_;
-
// Timer used to schedule commit after ScheduleWrite.
base::OneShotTimer<ImportantFileWriter> timer_;
Property changes on: chrome\common\important_file_writer.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/common/histogram_synchronizer.cc ('k') | chrome/common/important_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698