summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications
diff options
context:
space:
mode:
authorgab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-09 09:13:55 +0000
committergab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-09 09:13:55 +0000
commit435d43e09ce5c907be1892781a5d65a3d649b286 (patch)
treed86cf286646ec0856e4aa29bc8efd115ab34f71b /chrome/browser/notifications
parent6370121de1f821519af0496aa10dd7c256ea5246 (diff)
downloadchromium_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.cc6
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;