summaryrefslogtreecommitdiffstats
path: root/views/controls/combobox/native_combobox_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/combobox/native_combobox_gtk.cc')
-rw-r--r--views/controls/combobox/native_combobox_gtk.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/controls/combobox/native_combobox_gtk.cc b/views/controls/combobox/native_combobox_gtk.cc
index 00552d8..01b9762 100644
--- a/views/controls/combobox/native_combobox_gtk.cc
+++ b/views/controls/combobox/native_combobox_gtk.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -12,6 +12,7 @@
#include "base/utf_string_conversions.h"
#include "ui/base/models/combobox_model.h"
#include "views/controls/combobox/combobox.h"
+#include "views/controls/combobox/native_combobox_views.h"
#include "views/views_delegate.h"
using ui::ComboboxModel; // TODO(beng): remove
@@ -211,6 +212,8 @@ void NativeComboboxGtk::CallMenuMoveCurrent(
// static
NativeComboboxWrapper* NativeComboboxWrapper::CreateWrapper(
Combobox* combobox) {
+ if (NativeComboboxViews::IsComboboxViewsEnabled())
+ return new NativeComboboxViews(combobox);
return new NativeComboboxGtk(combobox);
}