summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/json_pref_store.cc7
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.