From 3df2aafb359c4ffae0f16b2ce1d7fc37ed376f88 Mon Sep 17 00:00:00 2001 From: "brg@chromium.com" Date: Sat, 25 Jul 2009 00:24:57 +0000 Subject: Partial fix to 7028 - Pinning in Win7.A complete fix will require Gears to set the application id as a property on the shortcut As of this cl, web applications hosted by Chrome will appear in their own groups on the task bar. However, they can not be pinned from the main application window nor can they be pinned from the shortcut. The former results in Chrome being pinned, and the latter results in a quick start button but does not group web applications under that button. Instead in the latter case a web appliation will form a new group. Bug=7028 Test=None. (When there is a Win7 trybot there may be at test to check if the windows group in the taskbar properly) Review URL: http://codereview.chromium.org/159336 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21595 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/browser/browser.cc') diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 64d478a..c400d48 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -347,6 +347,12 @@ void Browser::OpenApplicationWindow(Profile* profile, const GURL& url) { browser->AddTabWithURL(url, GURL(), PageTransition::START_PAGE, true, -1, false, NULL); +#if defined(OS_WIN) + // Set the app user model id for this application to that of the application + // name. See http://crbug.com/7028. + win_util::SetAppIdForWindow(app_name, browser->window()->GetNativeHandle()); +#endif + TabContents* tab_contents = browser->GetSelectedTabContents(); tab_contents->GetMutableRendererPrefs()->can_accept_load_drops = false; tab_contents->render_view_host()->SyncRendererPrefs(); -- cgit v1.1