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

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

Issue 229553003: Implement syncing of bookmark apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 6 years, 8 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/extensions/app_sync_data.cc ('k') | chrome/browser/extensions/bookmark_app_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/extensions/app_sync_data.cc ('k') | chrome/browser/extensions/bookmark_app_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698