diff options
| author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 23:15:32 +0000 |
|---|---|---|
| committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 23:15:32 +0000 |
| commit | 5f294031db12d64ea7eb1788c9aabf001a90653c (patch) | |
| tree | 456ab18e2c22e31d75d7055db85f2cd8a2fde590 /chrome/browser/extensions/extension_history_api.cc | |
| parent | a1b7a0fdd7d3f33cbaeefd2f41b0c2ee86449394 (diff) | |
| download | chromium_src-5f294031db12d64ea7eb1788c9aabf001a90653c.zip chromium_src-5f294031db12d64ea7eb1788c9aabf001a90653c.tar.gz chromium_src-5f294031db12d64ea7eb1788c9aabf001a90653c.tar.bz2 | |
base::Bind: Complete cleanup of history/.
BUG=none
TEST=none
R=csilv@chromium.org
Review URL: http://codereview.chromium.org/8163005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_history_api.cc')
| -rw-r--r-- | chrome/browser/extensions/extension_history_api.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_history_api.cc b/chrome/browser/extensions/extension_history_api.cc index 3f4dda7..e6c6a8a 100644 --- a/chrome/browser/extensions/extension_history_api.cc +++ b/chrome/browser/extensions/extension_history_api.cc @@ -272,7 +272,8 @@ bool SearchHistoryFunction::RunAsyncImpl() { HistoryService* hs = profile()->GetHistoryService(Profile::EXPLICIT_ACCESS); hs->QueryHistory(search_text, options, &cancelable_consumer_, - NewCallback(this, &SearchHistoryFunction::SearchComplete)); + base::Bind(&SearchHistoryFunction::SearchComplete, + base::Unretained(this))); return true; } @@ -349,7 +350,8 @@ bool DeleteRangeHistoryFunction::RunAsyncImpl() { begin_time, end_time, &cancelable_consumer_, - NewCallback(this, &DeleteRangeHistoryFunction::DeleteComplete)); + base::Bind(&DeleteRangeHistoryFunction::DeleteComplete, + base::Unretained(this))); return true; } @@ -366,7 +368,8 @@ bool DeleteAllHistoryFunction::RunAsyncImpl() { base::Time::UnixEpoch(), // From the beginning of the epoch. base::Time::Now(), // To the current time. &cancelable_consumer_, - NewCallback(this, &DeleteAllHistoryFunction::DeleteComplete)); + base::Bind(&DeleteAllHistoryFunction::DeleteComplete, + base::Unretained(this))); return true; } |
