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

Unified Diff: chrome/browser/extensions/data_deleter.h

Issue 421193002: Fix ExtensionServiceTest.ClearExtensionData flakiness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use base::DoNothing for empty callbacks Created 6 years, 5 months 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
Index: chrome/browser/extensions/data_deleter.h
diff --git a/chrome/browser/extensions/data_deleter.h b/chrome/browser/extensions/data_deleter.h
index 218a1088915080c76d36ae4c724bede62ae85e87..459b850262b6f28f9a315a7da3a560425841fd21 100644
--- a/chrome/browser/extensions/data_deleter.h
+++ b/chrome/browser/extensions/data_deleter.h
@@ -7,6 +7,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/callback_forward.h"
class Profile;
@@ -20,7 +21,12 @@ class DataDeleter {
// called. Cookies are deleted on the current thread, local storage and
// databases/settings are deleted asynchronously on the webkit and file
// threads, respectively. This function must be called from the UI thread.
- static void StartDeleting(Profile* profile, const Extension* extenion);
+ //
+ // |callback| is called when data deletion is done or at least the deletion
+ // is scheduled.
+ static void StartDeleting(Profile* profile,
+ const Extension* extenion,
+ const base::Closure& callback);
DISALLOW_COPY_AND_ASSIGN(DataDeleter);
};
« no previous file with comments | « chrome/browser/extensions/api/management/management_api.cc ('k') | chrome/browser/extensions/data_deleter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698