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

Unified Diff: chrome/browser/search_engines/search_provider_install_data.h

Issue 8570022: base::Bind() conversion for chrome/browser/search_engines (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 | « base/task_queue_unittest.cc ('k') | chrome/browser/search_engines/search_provider_install_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/search_provider_install_data.h
diff --git a/chrome/browser/search_engines/search_provider_install_data.h b/chrome/browser/search_engines/search_provider_install_data.h
index 11ca8bfe359d1468b121546141d3e1336028aeca..fac303dfeda06e9940be57f2527664a3be844025 100644
--- a/chrome/browser/search_engines/search_provider_install_data.h
+++ b/chrome/browser/search_engines/search_provider_install_data.h
@@ -9,16 +9,15 @@
#include <string>
#include "base/basictypes.h"
+#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
-#include "base/task_queue.h"
#include "chrome/browser/webdata/web_data_service.h"
class GURL;
class SearchHostToURLsMap;
-class Task;
class TemplateURL;
namespace content {
@@ -53,10 +52,10 @@ class SearchProviderInstallData : public WebDataServiceConsumer,
virtual ~SearchProviderInstallData();
// Use to determine when the search provider information is loaded. The
- // callback may happen synchronously or asynchronously. This takes ownership
- // of |task|. There is no need to do anything special to make it function
- // (as it just relies on the normal I/O thread message loop).
- void CallWhenLoaded(Task* task);
+ // callback may happen synchronously or asynchronously. There is no need to do
+ // anything special to make it function (as it just relies on the normal I/O
+ // thread message loop).
+ void CallWhenLoaded(const base::Closure& closure);
// Returns the search provider install state for the given origin.
// This should only be called while a task is called back from CallWhenLoaded.
@@ -84,8 +83,8 @@ class SearchProviderInstallData : public WebDataServiceConsumer,
// install state has been loaded.
void NotifyLoaded();
- // The list of tasks to call after the load has finished.
- TaskQueue task_queue_;
+ // The list of closures to call after the load has finished.
+ std::vector<base::Closure> closure_queue_;
// Service used to store entries.
scoped_refptr<WebDataService> web_service_;
« no previous file with comments | « base/task_queue_unittest.cc ('k') | chrome/browser/search_engines/search_provider_install_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698