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

Unified Diff: chrome/browser/web_applications/web_app_linux.cc

Issue 9958006: Create Linux platform app shortcuts to run in their own process. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved new function into shell_integration_linux.h Created 8 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/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_linux.cc
diff --git a/chrome/browser/web_applications/web_app_linux.cc b/chrome/browser/web_applications/web_app_linux.cc
index f9a21d168cfcc8fd39af955a5da16ec46a070ef4..4bfb301a1120e4b20bfb720489cb007512be3fac 100644
--- a/chrome/browser/web_applications/web_app_linux.cc
+++ b/chrome/browser/web_applications/web_app_linux.cc
@@ -6,14 +6,16 @@
#include "base/environment.h"
#include "base/logging.h"
+#include "chrome/browser/shell_integration_linux.h"
#include "content/public/browser/browser_thread.h"
namespace web_app {
namespace internals {
-void CreateShortcutTask(const FilePath& web_app_path,
- const FilePath& profile_path,
- const ShellIntegration::ShortcutInfo& shortcut_info) {
+bool CreatePlatformShortcut(
+ const FilePath& web_app_path,
+ const FilePath& profile_path,
+ const ShellIntegration::ShortcutInfo& shortcut_info) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
scoped_ptr<base::Environment> env(base::Environment::Create());
@@ -21,9 +23,10 @@ void CreateShortcutTask(const FilePath& web_app_path,
std::string shortcut_template;
if (!ShellIntegration::GetDesktopShortcutTemplate(env.get(),
&shortcut_template)) {
- return;
+ return false;
}
- ShellIntegration::CreateDesktopShortcut(shortcut_info, shortcut_template);
+ return ShellIntegrationLinux::CreateDesktopShortcutForChromeApp(
+ shortcut_info, web_app_path, shortcut_template);
}
} // namespace internals
« 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