Chromium Code Reviews| 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(); |