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 bef2cc9cc43c82acb6d5ef38927defeeefec42e8..d6754df4c9264ba104ab80c1100678374741c47f 100644 |
--- a/chrome/browser/extensions/bookmark_app_helper.h |
+++ b/chrome/browser/extensions/bookmark_app_helper.h |
@@ -21,6 +21,7 @@ class FaviconDownloader; |
class SkBitmap; |
namespace content { |
+class BrowserContext; |
class WebContents; |
} |
@@ -93,6 +94,15 @@ class BookmarkAppHelper : public content::NotificationObserver { |
void CreateOrUpdateBookmarkApp(ExtensionService* service, |
WebApplicationInfo& web_app_info); |
+// Retrieves the WebApplicationInfo that represents a given bookmark app. |
+// |callback| will be called with a WebApplicationInfo which is populated with |
+// the extension's details and icons on success and an unpopulated |
+// WebApplicationInfo on failure. |
+void GetWebApplicationInfoFromApp( |
+ content::BrowserContext* browser_context, |
+ const extensions::Extension* extension, |
+ const base::Callback<void(const WebApplicationInfo&)> callback); |
+ |
// Returns whether the given |url| is a valid bookmark app url. |
bool IsValidBookmarkAppUrl(const GURL& url); |