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

Unified Diff: chrome/browser/ui/apps/apps_metro_handler_win.cc

Issue 1581473002: Remove base/win/metro.{cc|h} and some associated code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 11 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
Index: chrome/browser/ui/apps/apps_metro_handler_win.cc
diff --git a/chrome/browser/ui/apps/apps_metro_handler_win.cc b/chrome/browser/ui/apps/apps_metro_handler_win.cc
deleted file mode 100644
index fa371ad194e591dadf342265d67a5fe1cf95a433..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/apps/apps_metro_handler_win.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/apps/apps_metro_handler_win.h"
-
-#include "chrome/app/chrome_command_ids.h"
-#include "chrome/browser/apps/app_window_registry_util.h"
-#include "chrome/browser/ui/simple_message_box.h"
-#include "chrome/grit/chromium_strings.h"
-#include "chrome/grit/generated_resources.h"
-#include "extensions/browser/app_window/app_window.h"
-#include "ui/base/l10n/l10n_util.h"
-
-bool VerifyASHSwitchForApps(gfx::NativeWindow parent_window,
- int win_restart_command_id) {
- DCHECK(win_restart_command_id == IDC_WIN_DESKTOP_RESTART ||
- win_restart_command_id == IDC_WIN8_METRO_RESTART ||
- win_restart_command_id == IDC_WIN_CHROMEOS_RESTART);
- if (!AppWindowRegistryUtil::IsAppWindowVisibleInAnyProfile(
- extensions::AppWindow::WINDOW_TYPE_DEFAULT)) {
- return true;
- }
-
- int string_id = 0;
- switch (win_restart_command_id) {
- case IDC_WIN8_METRO_RESTART:
- string_id = IDS_WIN8_PROMPT_TO_CLOSE_APPS_FOR_METRO;
- break;
- case IDC_WIN_CHROMEOS_RESTART:
- string_id = IDS_WIN_PROMPT_TO_CLOSE_APPS_FOR_CHROMEOS;
- break;
- default:
- string_id = IDS_WIN_PROMPT_TO_CLOSE_APPS_FOR_DESKTOP;
- break;
- }
- chrome::MessageBoxResult result = chrome::ShowMessageBox(
- parent_window,
- l10n_util::GetStringUTF16(IDS_PRODUCT_NAME),
- l10n_util::GetStringUTF16(string_id),
- chrome::MESSAGE_BOX_TYPE_OK_CANCEL);
-
- return result == chrome::MESSAGE_BOX_RESULT_YES;
-}

Powered by Google App Engine
This is Rietveld 408576698