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

Side by Side Diff: chrome/browser/ui/webui/md_bookmarks/md_bookmarks_browsertest.h

Issue 2912893002: MD Bookmarks: Support policies for disabling bookmark editing (Closed)
Patch Set: canEdit -> globalCanEdit Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_MD_BOOKMARKS_MD_BOOKMARKS_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_MD_BOOKMARKS_MD_BOOKMARKS_BROWSERTEST_H_
6 #define CHROME_BROWSER_UI_WEBUI_MD_BOOKMARKS_MD_BOOKMARKS_BROWSERTEST_H_ 6 #define CHROME_BROWSER_UI_WEBUI_MD_BOOKMARKS_MD_BOOKMARKS_BROWSERTEST_H_
7 7
8 #include "chrome/test/base/web_ui_browser_test.h" 8 #include "chrome/test/base/web_ui_browser_test.h"
9 #include "content/public/browser/web_ui_message_handler.h" 9 #include "content/public/browser/web_ui_message_handler.h"
10 10
11 class MdBookmarksBrowserTest : public WebUIBrowserTest, 11 class MdBookmarksBrowserTest : public WebUIBrowserTest,
12 public content::WebUIMessageHandler { 12 public content::WebUIMessageHandler {
13 public: 13 public:
14 MdBookmarksBrowserTest(); 14 MdBookmarksBrowserTest();
15 ~MdBookmarksBrowserTest() override; 15 ~MdBookmarksBrowserTest() override;
16 16
17 void SetIncognitoAvailability(int availability); 17 void SetIncognitoAvailability(int availability);
18 void SetCanEditBookmarks(bool canEdit);
18 19
19 private: 20 private:
20 void HandleSetIncognitoAvailability(const base::ListValue* args); 21 void HandleSetIncognitoAvailability(const base::ListValue* args);
22 void HandleSetCanEditBookmarks(const base::ListValue* args);
21 23
22 // content::WebUIMessageHandler: 24 // content::WebUIMessageHandler:
23 void RegisterMessages() override; 25 void RegisterMessages() override;
24 26
25 // WebUIBrowserTest: 27 // WebUIBrowserTest:
26 content::WebUIMessageHandler* GetMockMessageHandler() override; 28 content::WebUIMessageHandler* GetMockMessageHandler() override;
27 29
28 DISALLOW_COPY_AND_ASSIGN(MdBookmarksBrowserTest); 30 DISALLOW_COPY_AND_ASSIGN(MdBookmarksBrowserTest);
29 }; 31 };
30 32
31 #endif // CHROME_BROWSER_UI_WEBUI_MD_BOOKMARKS_MD_BOOKMARKS_BROWSERTEST_H_ 33 #endif // CHROME_BROWSER_UI_WEBUI_MD_BOOKMARKS_MD_BOOKMARKS_BROWSERTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698