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

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 164280: First step to create application shortcuts on Linux. (Closed)
Patch Set: now tested Created 11 years, 4 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/tab_contents/tab_contents.cc
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index f6e6687f43c64ebc510e64015908bec939f19886..36a5d7e337ec89d366a849521a078af499cde717 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -45,6 +45,7 @@
#include "chrome/browser/thumbnail_store.h"
#include "chrome/browser/search_engines/template_url_fetcher.h"
#include "chrome/browser/search_engines/template_url_model.h"
+#include "chrome/browser/shell_integration.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/page_action.h"
@@ -743,6 +744,10 @@ void TabContents::CreateShortcut() {
if (!entry)
return;
+#if defined(OS_LINUX)
+ // TODO(phajdan.jr): Finish creating shortcuts (UI etc).
Evan Martin 2009/08/14 18:29:22 maybe stick a NOTIMPLEMENTED() in here so it doesn
+ ShellIntegration::CreateDesktopShortcut(GetURL(), GetTitle());
+#else
// We only allow one pending install request. By resetting the page id we
// effectively cancel the pending install request.
pending_install_.page_id = entry->page_id();
@@ -760,6 +765,7 @@ void TabContents::CreateShortcut() {
// Request the application info. When done OnDidGetApplicationInfo is invoked
// and we'll create the shortcut.
render_view_host()->GetApplicationInfo(pending_install_.page_id);
+#endif
}
void TabContents::ShowPageInfo(const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698