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 61d60ed364e7650ea8f13649bbc0ed9fbcbb9696..da8703ffa39e9a219e2fd0ba226ac04b2a259935 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.h" |
+#include "chrome/browser/ui/android/tab_model/tab_model_list.h" |
+#endif |
+ |
using content::UserMetricsAction; |
using content::WebContents; |
@@ -283,7 +288,11 @@ void BrowsingHistoryHandler::HandleRemoveURLsOnOneDay(const ListValue* args) { |
void BrowsingHistoryHandler::HandleClearBrowsingData(const ListValue* args) { |
#if defined(OS_ANDROID) |
- NOTIMPLEMENTED() << "TODO(yfriedman): Upstream the Android version."; |
+ Profile* profile = Profile::FromWebUI(web_ui()); |
+ const TabModel* tab_model = |
+ TabModelList::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. |