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

Unified Diff: chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc

Issue 2902103002: MD Bookmarks: Disable 'Open in Incognito Window' when Incognito is disabled (Closed)
Patch Set: Review comment Created 3 years, 7 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/ui/webui/md_bookmarks/md_bookmarks_browsertest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc
diff --git a/chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc b/chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc
index a7e62da59381b6166a3133839b2b2bcdcea0f3bd..76d0fecc8d837d04955c2bfba83ece011c908230 100644
--- a/chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc
+++ b/chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc
@@ -5,9 +5,11 @@
#include "chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.h"
#include <algorithm>
+#include <string>
#include "base/strings/string16.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/webui/md_bookmarks/bookmarks_message_handler.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/browser_resources.h"
@@ -152,6 +154,8 @@ MdBookmarksUI::MdBookmarksUI(content::WebUI* web_ui) : WebUIController(web_ui) {
Profile* profile = Profile::FromWebUI(web_ui);
content::WebUIDataSource::Add(profile,
CreateMdBookmarksUIHTMLSource(profile));
+
+ web_ui->AddMessageHandler(base::MakeUnique<BookmarksMessageHandler>());
}
// static
« no previous file with comments | « chrome/browser/ui/webui/md_bookmarks/md_bookmarks_browsertest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698