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

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

Issue 9423048: Add user data dir field to Mac platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build 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
« no previous file with comments | « chrome/browser/web_applications/web_app.cc ('k') | chrome/browser/web_applications/web_app_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4d820bc48f381e7bef6fa5b195e635b4eff82906..1723ac15005cc9733bfe4503e3cf6fd163cffe2b 100644
--- a/chrome/browser/web_applications/web_app_mac.h
+++ b/chrome/browser/web_applications/web_app_mac.h
@@ -17,7 +17,9 @@ namespace web_app {
class WebAppShortcutCreator {
public:
// Creates a new shortcut based on information in |shortcut_info|.
+ // The shortcut stores its user data directory in |user_data_dir|.
explicit WebAppShortcutCreator(
+ const FilePath& user_data_dir,
const ShellIntegration::ShortcutInfo& shortcut_info);
virtual ~WebAppShortcutCreator();
@@ -40,6 +42,11 @@ class WebAppShortcutCreator {
private:
FRIEND_TEST_ALL_PREFIXES(WebAppShortcutCreatorTest, UpdateIcon);
+ // Path to the app's user data directory. For example:
+ // ~/Library/Application Support/Chromium/Default/Web Applications/_crx_abc/
+ // Note, the user data directory is the parent of the profile directory.
+ FilePath user_data_dir_;
+
// Information about the app.
ShellIntegration::ShortcutInfo info_;
};
« no previous file with comments | « chrome/browser/web_applications/web_app.cc ('k') | chrome/browser/web_applications/web_app_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698