diff options
author | brg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-25 00:24:57 +0000 |
---|---|---|
committer | brg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-25 00:24:57 +0000 |
commit | 3df2aafb359c4ffae0f16b2ce1d7fc37ed376f88 (patch) | |
tree | bbf119bebf751f312a931bf83f368dc050ef982f /chrome/browser/browser.cc | |
parent | ade3b63c489ed162de38637be1c551276e3ce5f2 (diff) | |
download | chromium_src-3df2aafb359c4ffae0f16b2ce1d7fc37ed376f88.zip chromium_src-3df2aafb359c4ffae0f16b2ce1d7fc37ed376f88.tar.gz chromium_src-3df2aafb359c4ffae0f16b2ce1d7fc37ed376f88.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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(); |