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

Unified Diff: chrome/browser/ui/webui/history_ui.h

Issue 2077483002: MD History: Add confirmation dialog when deleting items from the toolbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cr_refactor_dialog
Patch Set: Address nits Created 4 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
« no previous file with comments | « chrome/browser/resources/md_history/list_container.js ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/history_ui.h
diff --git a/chrome/browser/ui/webui/history_ui.h b/chrome/browser/ui/webui/history_ui.h
index 0b576bc8fb213b644555f254367b1318ed9e83a3..5f4eb1b98b4d6caf36bd0bfb1849e056cf0a15a6 100644
--- a/chrome/browser/ui/webui/history_ui.h
+++ b/chrome/browser/ui/webui/history_ui.h
@@ -9,6 +9,8 @@
#include "content/public/browser/web_ui_controller.h"
#include "ui/base/layout.h"
+class Profile;
+
namespace base {
class RefCountedMemory;
}
@@ -21,6 +23,10 @@ class HistoryUI : public content::WebUIController {
static base::RefCountedMemory* GetFaviconResourceBytes(
ui::ScaleFactor scale_factor);
+ // Returns a localized string warning about deleting history. Takes into
+ // account whether or not incognito mode is available.
+ static base::string16 GetDeleteWarningString(Profile* profile);
+
private:
DISALLOW_COPY_AND_ASSIGN(HistoryUI);
};
« no previous file with comments | « chrome/browser/resources/md_history/list_container.js ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698