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

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

Issue 1161233005: Implement app banner info bars on desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stop-icon-overgeneration
Patch Set: Fixing display bug on Android Created 5 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/bookmark_app_helper.h
diff --git a/chrome/browser/extensions/bookmark_app_helper.h b/chrome/browser/extensions/bookmark_app_helper.h
index cb6a16aa31a30022a02744dd62a50d58f96864db..7239fbefccf3ba21ffb1bde182645b05261ff721 100644
--- a/chrome/browser/extensions/bookmark_app_helper.h
+++ b/chrome/browser/extensions/bookmark_app_helper.h
@@ -98,6 +98,10 @@ class BookmarkAppHelper : public content::NotificationObserver {
// Begins the asynchronous bookmark app creation.
void Create(const CreateBookmarkAppCallback& callback);
+ // Begins the asynchronous bookmark app creation from an app banner.
+ void CreateFromAppBanner(const CreateBookmarkAppCallback& callback,
+ const content::Manifest& manifest);
+
private:
friend class TestBookmarkAppHelper;
@@ -124,6 +128,10 @@ class BookmarkAppHelper : public content::NotificationObserver {
const content::NotificationSource& source,
const content::NotificationDetails& details) override;
+ // Display the bubble requesting user confirmation. Called when creating a
+ // bookmark app via an add to shelf infobar.
+ void ShowBookmarkAppBubble();
+
// The profile that the bookmark app is being added to.
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698