| Index: chrome/browser/automation/automation_provider.cc
|
| ===================================================================
|
| --- chrome/browser/automation/automation_provider.cc (revision 42644)
|
| +++ chrome/browser/automation/automation_provider.cc (working copy)
|
| @@ -33,6 +33,7 @@
|
| #include "chrome/browser/bookmarks/bookmark_storage.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/browser_window.h"
|
| +#include "chrome/browser/browsing_data_remover.h"
|
| #include "chrome/browser/chrome_thread.h"
|
| #include "chrome/browser/dom_operation_notification_details.h"
|
| #include "chrome/browser/debugger/devtools_manager.h"
|
| @@ -506,6 +507,7 @@
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_WaitForPopupMenuToOpen,
|
| WaitForPopupMenuToOpen)
|
| #endif
|
| + IPC_MESSAGE_HANDLER(AutomationMsg_RemoveBrowsingData, RemoveBrowsingData)
|
| IPC_END_MESSAGE_MAP()
|
| }
|
|
|
| @@ -2348,6 +2350,14 @@
|
| }
|
| }
|
|
|
| +void AutomationProvider::RemoveBrowsingData(int remove_mask) {
|
| + BrowsingDataRemover* remover;
|
| + remover = new BrowsingDataRemover(profile(),
|
| + BrowsingDataRemover::EVERYTHING, // All time periods.
|
| + base::Time());
|
| + remover->Remove(remove_mask);
|
| + // BrowsingDataRemover deletes itself.
|
| +}
|
|
|
| void AutomationProvider::WaitForBrowserWindowCountToBecome(
|
| int target_count, IPC::Message* reply_message) {
|
|
|