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

Unified Diff: chrome/browser/web_applications/web_app_mac.h

Issue 9416012: Mac: Generate App Mode Loader bundle + cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/web_applications/web_app_mac.h
diff --git a/chrome/browser/web_applications/web_app_mac.h b/chrome/browser/web_applications/web_app_mac.h
index 261b9d724a4f00e48b7dc11546a6325f8aae60bd..6bf015c81cdcf44b9f5acaeec5662e894bd2f928 100644
--- a/chrome/browser/web_applications/web_app_mac.h
+++ b/chrome/browser/web_applications/web_app_mac.h
@@ -9,6 +9,8 @@
#include "base/file_path.h"
#include "chrome/browser/shell_integration.h"
+@class NSString;
+
namespace web_app {
// Creates a shortcut for a web application. The shortcut is a stub app
@@ -20,8 +22,10 @@ class WebAppShortcutCreator {
const ShellIntegration::ShortcutInfo& shortcut_info);
virtual ~WebAppShortcutCreator();
- // Creates a shortcut.
- bool CreateShortcut();
+ // Copies the app launcher template into place and fills in all relevant
+ // information.
+ // |chrome_bundle_id| - CFBundleIdentifier of the Chrome browser bundle.
+ bool CreateShortcut(NSString* chrome_bundle_id);
sail 2012/02/17 16:42:09 Instead of passing the bundle ID to create shortcu
jeremy 2012/02/19 14:36:41 Done.
protected:
// Returns a path to the app loader.
@@ -31,7 +35,7 @@ class WebAppShortcutCreator {
virtual FilePath GetDestinationPath(const FilePath& app_file_name) const;
// Updates the plist inside |app_path| with information about the app.
- bool UpdatePlist(const FilePath& app_path) const;
+ bool UpdatePlist(const FilePath& app_path, NSString* chrome_bundle_id) const;
// Updates the icon for the shortcut.
bool UpdateIcon(const FilePath& app_path) const;

Powered by Google App Engine
This is Rietveld 408576698