diff options
author | miket@chromium.org <miket@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 18:04:41 +0000 |
---|---|---|
committer | miket@chromium.org <miket@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 18:04:41 +0000 |
commit | 3a1a40516b43d170e0651b0e3636072b0fdcf1fd (patch) | |
tree | adf061b08a62cc8f025421fc58fe07a2321fa81e | |
parent | f9f03c4286650f96fb43c9eadd2d956d05850b68 (diff) | |
download | chromium_src-3a1a40516b43d170e0651b0e3636072b0fdcf1fd.zip chromium_src-3a1a40516b43d170e0651b0e3636072b0fdcf1fd.tar.gz chromium_src-3a1a40516b43d170e0651b0e3636072b0fdcf1fd.tar.bz2 |
Bind Migration.
See http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/e6cc7ea6ebd0d6f7# for context.
TEST=nothing new required; re-ran unit tests.
Review URL: http://codereview.chromium.org/8295018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105847 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/common/json_pref_store.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/common/json_pref_store.cc b/chrome/common/json_pref_store.cc index ac4a780..06c2028 100644 --- a/chrome/common/json_pref_store.cc +++ b/chrome/common/json_pref_store.cc @@ -37,9 +37,8 @@ class FileThreadDeserializer DCHECK(origin_loop_proxy_->BelongsToCurrentThread()); file_loop_proxy_->PostTask( FROM_HERE, - NewRunnableMethod(this, - &FileThreadDeserializer::ReadFileAndReport, - path)); + base::Bind(&FileThreadDeserializer::ReadFileAndReport, + this, path)); } // Deserializes JSON on the file thread. @@ -50,7 +49,7 @@ class FileThreadDeserializer origin_loop_proxy_->PostTask( FROM_HERE, - NewRunnableMethod(this, &FileThreadDeserializer::ReportOnOriginThread)); + base::Bind(&FileThreadDeserializer::ReportOnOriginThread, this)); } // Reports deserialization result on the origin thread. |