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

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

Issue 9374009: Install platform apps into a separate data directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test 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 603bc0ccd81a71a942d63302d2876a5b4520d1ad..790f2bc0f104c3bed4d0cde82dea40acd0075fe1 100644
--- a/chrome/browser/web_applications/web_app_mac.h
+++ b/chrome/browser/web_applications/web_app_mac.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_
#pragma once
+#include "base/file_path.h"
#include "chrome/browser/shell_integration.h"
namespace web_app {
@@ -15,7 +16,9 @@ namespace web_app {
class WebAppShortcutCreator {
public:
// Creates a new shortcut based on information in |shortcut_info|.
+ // The shortcut store its data directory in |web_app_path|.
jeremy 2012/02/12 09:40:28 nit: store -> stores
explicit WebAppShortcutCreator(
+ const FilePath& web_app_path,
const ShellIntegration::ShortcutInfo& shortcut_info);
virtual ~WebAppShortcutCreator();
@@ -36,6 +39,10 @@ class WebAppShortcutCreator {
bool UpdateIcon(const FilePath& app_path) const;
private:
+ // Path to the app's data directory. For example:
+ // ~/Library/Application Support/Chromium/Default/Web Applications/_crx_abc/
+ FilePath web_app_path_;
+
// Information about the app.
ShellIntegration::ShortcutInfo info_;
};

Powered by Google App Engine
This is Rietveld 408576698