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

Unified Diff: chrome/browser/ui/views/hung_renderer_view_win.cc

Issue 11411286: Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: keep base/win/metro.h in omnibox_view_win.cc for IsTSFAwareRequired() Created 8 years 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/views/hung_renderer_view_win.cc
diff --git a/chrome/browser/ui/views/hung_renderer_view_win.cc b/chrome/browser/ui/views/hung_renderer_view_win.cc
index 93d10ab50508d72ecda6f9af3d14d58a637db10c..e4b6f62e812610e106b701298ea7a031a40c3aaf 100644
--- a/chrome/browser/ui/views/hung_renderer_view_win.cc
+++ b/chrome/browser/ui/views/hung_renderer_view_win.cc
@@ -11,6 +11,7 @@
#include "content/public/browser/render_process_host.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+#include "win8/util/win8_util.h"
// Metro functions for displaying and dismissing a dialog box.
typedef void (*MetroShowDialogBox)(
@@ -29,7 +30,7 @@ using content::WebContents;
HungRendererDialogMetro* HungRendererDialogMetro::g_instance_ = NULL;
bool PlatformShowCustomHungRendererDialog(WebContents* contents) {
- if (!base::win::IsMetroProcess())
+ if (!win8::IsSingleWindowMetroMode())
return false;
HungRendererDialogMetro::Create()->Show(contents);
@@ -37,7 +38,7 @@ bool PlatformShowCustomHungRendererDialog(WebContents* contents) {
}
bool PlatformHideCustomHungRendererDialog(WebContents* contents) {
- if (!base::win::IsMetroProcess())
+ if (!win8::IsSingleWindowMetroMode())
return false;
if (HungRendererDialogMetro::GetInstance())
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698