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

Unified Diff: ui/views/controls/textfield/native_textfield_win.cc

Issue 10560015: Implement base::win::IsMetroProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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: ui/views/controls/textfield/native_textfield_win.cc
diff --git a/ui/views/controls/textfield/native_textfield_win.cc b/ui/views/controls/textfield/native_textfield_win.cc
index 39fb411f8d421a5509b30b61eff62daabaa5b082..d575d6f03092623c8edd8a683228334750475b3d 100644
--- a/ui/views/controls/textfield/native_textfield_win.cc
+++ b/ui/views/controls/textfield/native_textfield_win.cc
@@ -124,7 +124,7 @@ NativeTextfieldWin::NativeTextfieldWin(Textfield* textfield)
text_object_model_.QueryFrom(ole_interface);
if (base::win::GetVersion() >= base::win::VERSION_WIN8 &&
- !base::win::GetMetroModule()) {
+ !base::win::InMetroMode()) {
keyboard_.CreateInstance(__uuidof(TextInputPanel), NULL, CLSCTX_INPROC);
if (keyboard_ != NULL)
keyboard_->put_AttachedEditWindow(m_hWnd);

Powered by Google App Engine
This is Rietveld 408576698