Index: chrome/browser/ui/webui/history_ui.cc |
diff --git a/chrome/browser/ui/webui/history_ui.cc b/chrome/browser/ui/webui/history_ui.cc |
index 2a41cec1691185cc383ac08ecf87ab9e78763b0b..5b6a7d0e9dc51913264b10882d485758e95ea5fa 100644 |
--- a/chrome/browser/ui/webui/history_ui.cc |
+++ b/chrome/browser/ui/webui/history_ui.cc |
@@ -49,6 +49,11 @@ |
#include "ui/base/layout.h" |
#include "ui/base/resource/resource_bundle.h" |
+#if defined(OS_ANDROID) |
+#include "chrome/browser/ui/android/tab_model/tab_model_android.h" |
+#include "chrome/browser/ui/android/tab_model/tab_model_list_android.h" |
+#endif |
+ |
using content::UserMetricsAction; |
using content::WebContents; |
@@ -282,12 +287,15 @@ void BrowsingHistoryHandler::HandleRemoveURLsOnOneDay(const ListValue* args) { |
} |
void BrowsingHistoryHandler::HandleClearBrowsingData(const ListValue* args) { |
+ Profile* profile = Profile::FromWebUI(web_ui()); |
#if defined(OS_ANDROID) |
- NOTIMPLEMENTED() << "TODO(yfriedman): Upstream the Android version."; |
+ const TabModelAndroid* tab_model = |
+ TabModelListAndroid::GetTabModelWithProfile(profile); |
+ if (tab_model) |
+ tab_model->OpenClearBrowsingData(); |
#else |
// TODO(beng): This is an improper direct dependency on Browser. Route this |
// through some sort of delegate. |
- Profile* profile = Profile::FromWebUI(web_ui()); |
Browser* browser = browser::FindBrowserWithProfile(profile); |
if (browser) |
chrome::ShowClearBrowsingDataDialog(browser); |