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

Unified Diff: chrome/browser/extensions/test_bookmark_app_helper.h

Issue 2916753004: Use BookmarkAppConfirmationView on Mac. Delete the NSAlert Mac uses currently. (Closed)
Patch Set: alrighty 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
Index: chrome/browser/extensions/test_bookmark_app_helper.h
diff --git a/chrome/browser/extensions/test_bookmark_app_helper.h b/chrome/browser/extensions/test_bookmark_app_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a27eca442e85013e28f1a894d702c1483cb9700
--- /dev/null
+++ b/chrome/browser/extensions/test_bookmark_app_helper.h
@@ -0,0 +1,33 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_TEST_BOOKMARK_APP_HELPER_H_
+#define CHROME_BROWSER_EXTENSIONS_TEST_BOOKMARK_APP_HELPER_H_
+
+#include "chrome/browser/extensions/bookmark_app_helper.h"
+
+namespace extensions {
+namespace test {
+
+class TestBookmarkAppHelper : public extensions::BookmarkAppHelper {
benwells 2017/06/06 03:31:50 What's the point of this class?
tapted 2017/06/06 07:44:12 Added a comment. (OnDidGetManifest and OnIconsDow
+ public:
+ TestBookmarkAppHelper(Profile* profile,
+ WebApplicationInfo web_app_info,
+ content::WebContents* contents)
+ : BookmarkAppHelper(profile, web_app_info, contents) {}
+ ~TestBookmarkAppHelper() override {}
+
+ protected:
+ // Allow subclasses to call these.
+ using BookmarkAppHelper::OnDidGetManifest;
+ using BookmarkAppHelper::OnIconsDownloaded;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestBookmarkAppHelper);
+};
+
+} // namespace test
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_TEST_BOOKMARK_APP_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698