diff options
author | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-09 09:13:55 +0000 |
---|---|---|
committer | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-09 09:13:55 +0000 |
commit | 435d43e09ce5c907be1892781a5d65a3d649b286 (patch) | |
tree | d86cf286646ec0856e4aa29bc8efd115ab34f71b /chrome/browser/notifications | |
parent | 6370121de1f821519af0496aa10dd7c256ea5246 (diff) | |
download | chromium_src-435d43e09ce5c907be1892781a5d65a3d649b286.zip chromium_src-435d43e09ce5c907be1892781a5d65a3d649b286.tar.gz chromium_src-435d43e09ce5c907be1892781a5d65a3d649b286.tar.bz2 |
Simple CreateParams conversions to using constructor with HostDesktopType.
Doing all the easy ones (no extra plumbing required) in one pass, will make separate CLs for others.
BUG=129187
Review URL: https://chromiumcodereview.appspot.com/11442025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172002 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications')
-rw-r--r-- | chrome/browser/notifications/notification_options_menu_model.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/notifications/notification_options_menu_model.cc b/chrome/browser/notifications/notification_options_menu_model.cc index ec840f4..753037a 100644 --- a/chrome/browser/notifications/notification_options_menu_model.cc +++ b/chrome/browser/notifications/notification_options_menu_model.cc @@ -251,12 +251,14 @@ void NotificationOptionsMenuModel::ExecuteCommand(int command_id) { break; } case kOpenContentSettingsCommand: { + chrome::HostDesktopType active_desktop = chrome::GetActiveDesktop(); Browser* browser = chrome::FindLastActiveWithProfile( - balloon_->profile(), chrome::GetActiveDesktop()); + balloon_->profile(), active_desktop); if (!browser) { // It is possible that there is no browser window (e.g. when there are // background pages, or for a chrome frame process on windows). - browser = new Browser(Browser::CreateParams(balloon_->profile())); + browser = new Browser(Browser::CreateParams(balloon_->profile(), + active_desktop)); } chrome::ShowContentSettings(browser, CONTENT_SETTINGS_TYPE_NOTIFICATIONS); break; |