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/autocomplete | |
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/autocomplete')
-rw-r--r-- | chrome/browser/autocomplete/history_contents_provider.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/autocomplete/history_contents_provider.cc b/chrome/browser/autocomplete/history_contents_provider.cc index 7061daf..6ec694c 100644 --- a/chrome/browser/autocomplete/history_contents_provider.cc +++ b/chrome/browser/autocomplete/history_contents_provider.cc @@ -4,7 +4,8 @@ #include "chrome/browser/autocomplete/history_contents_provider.h" -#include "base/callback.h" +#include "base/bind.h" +#include "base/bind_helpers.h" #include "base/metrics/histogram.h" #include "base/string_util.h" #include "base/utf_string_conversions.h" @@ -137,7 +138,8 @@ void HistoryContentsProvider::Start(const AutocompleteInput& input, options.max_count = kMaxMatches; history->QueryHistory(input.text(), options, &request_consumer_, - NewCallback(this, &HistoryContentsProvider::QueryComplete)); + base::Bind(&HistoryContentsProvider::QueryComplete, + base::Unretained(this))); } } } |