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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc

Issue 589303002: App windows launched in windows ASH should not be messing with the AppUserModelId for the remote HW… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc
index c0c63a61e6ad3ed2d1dc0c56b5de8975055ca3a0..9ffbd976a046038e85e66462e65a870f522c4f5e 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc
@@ -112,19 +112,19 @@ void ChromeNativeAppWindowViewsWin::InitializeDefaultWindow(
if (!extension)
return;
- std::string app_name =
- web_app::GenerateApplicationNameFromExtensionId(extension->id());
- base::string16 app_name_wide = base::UTF8ToWide(app_name);
- HWND hwnd = GetNativeAppWindowHWND();
- Profile* profile =
- Profile::FromBrowserContext(app_window()->browser_context());
- app_model_id_ =
- ShellIntegration::GetAppModelIdForProfile(app_name_wide,
- profile->GetPath());
- ui::win::SetAppIdForWindow(app_model_id_, hwnd);
-
- web_app::UpdateRelaunchDetailsForApp(profile, extension, hwnd);
-
+ if (!IsRunningInAsh()) {
tapted 2014/09/23 01:24:39 I don't think we want the stuff in UpdateShelfMenu
ananta 2014/09/23 18:18:49 Done.
+ std::string app_name =
+ web_app::GenerateApplicationNameFromExtensionId(extension->id());
+ base::string16 app_name_wide = base::UTF8ToWide(app_name);
+ HWND hwnd = GetNativeAppWindowHWND();
+ Profile* profile =
+ Profile::FromBrowserContext(app_window()->browser_context());
+ app_model_id_ =
+ ShellIntegration::GetAppModelIdForProfile(app_name_wide,
+ profile->GetPath());
+ ui::win::SetAppIdForWindow(app_model_id_, hwnd);
+ web_app::UpdateRelaunchDetailsForApp(profile, extension, hwnd);
+ }
if (!create_params.alpha_enabled && !IsRunningInAsh())
EnsureCaptionStyleSet();
UpdateShelfMenu();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698