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

Unified Diff: chrome/browser/background_mode_manager.cc

Issue 7064009: Remove confirmation dialog from BackgroundModeManager. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | « chrome/app/google_chrome_strings.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background_mode_manager.cc
diff --git a/chrome/browser/background_mode_manager.cc b/chrome/browser/background_mode_manager.cc
index db1b063b2a547fe61900a792fa8d1468a5b11a14..63150e003a05d25382d6dcb82c9baaf509622fa9 100644
--- a/chrome/browser/background_mode_manager.cc
+++ b/chrome/browser/background_mode_manager.cc
@@ -13,7 +13,6 @@
#include "chrome/browser/background_mode_manager.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/extension_service.h"
-#include "chrome/browser/platform_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/status_icons/status_icon.h"
#include "chrome/browser/status_icons/status_tray.h"
@@ -396,22 +395,6 @@ void BackgroundModeManager::ExecuteCommand(int item) {
// not be visible).
DCHECK(IsBackgroundModePrefEnabled());
DCHECK(BrowserList::WillKeepAlive());
- if (BrowserList::size() == 0) {
- // There are no windows open - unchecking this will exit Chrome. Warn
- // the user.
- string16 tab_title = l10n_util::GetStringFUTF16(IDS_OPTIONS_TAB_TITLE,
- l10n_util::GetStringUTF16(IDS_SETTINGS_TITLE),
- l10n_util::GetStringUTF16(IDS_OPTIONS_ADVANCED_TAB_LABEL));
-
- if (!platform_util::SimpleYesNoBox(
- NULL,
- l10n_util::GetStringUTF16(IDS_PRODUCT_NAME),
- l10n_util::GetStringFUTF16(
- IDS_CONFIRM_EXIT_BACKGROUND_MODE_BODY,
- tab_title))) {
- return;
- }
- }
// Set the background mode pref to "disabled" - the resulting notification
// will result in a call to DisableBackgroundMode().
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698