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

Unified Diff: printing/printing_context_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
« no previous file with comments | « printing/printing.gyp ('k') | win8/util/win8_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_win.cc
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
index b5d05519de391d2913629810d1764af516520d9b..8e0f0e11893df996ba0dbcfe0777f89dbbbbc051 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -23,6 +23,7 @@
#include "printing/printed_document.h"
#include "printing/units.h"
#include "skia/ext/platform_device.h"
+#include "win8/util/win8_util.h"
using base::Time;
@@ -223,7 +224,7 @@ void PrintingContextWin::AskUserForSettings(
#if !defined(USE_AURA)
DCHECK(!in_print_job_);
- if (base::win::IsMetroProcess()) {
+ if (win8::IsSingleWindowMetroMode()) {
// The system dialog can not be opened while running in Metro.
// But we can programatically launch the Metro print device charm though.
HMODULE metro_module = base::win::GetMetroModule();
« no previous file with comments | « printing/printing.gyp ('k') | win8/util/win8_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698