diff options
author | saintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-03 21:54:00 +0000 |
---|---|---|
committer | saintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-03 21:54:00 +0000 |
commit | 4fc08c08f72dfe451e1bf587db6bfad0c7137656 (patch) | |
tree | 168162d28104400421bfa47a3db2c01379e39f91 /views/examples | |
parent | c244ca0d673ded317c2a44837d53700b46b28781 (diff) | |
download | chromium_src-4fc08c08f72dfe451e1bf587db6bfad0c7137656.zip chromium_src-4fc08c08f72dfe451e1bf587db6bfad0c7137656.tar.gz chromium_src-4fc08c08f72dfe451e1bf587db6bfad0c7137656.tar.bz2 |
Use single command line flag for all pure Views situations,
rather than enabling case by case
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6911018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/examples')
-rw-r--r-- | views/examples/examples_main.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/views/examples/examples_main.cc b/views/examples/examples_main.cc index 8b2b647..94c30cf 100644 --- a/views/examples/examples_main.cc +++ b/views/examples/examples_main.cc @@ -31,6 +31,7 @@ #include "views/examples/widget_example.h" #include "views/focus/accelerator_handler.h" #include "views/layout/grid_layout.h" +#include "views/widget/root_view.h" #include "views/window/window.h" #if defined(OS_WIN) @@ -184,6 +185,12 @@ int main(int argc, char** argv) { #endif CommandLine::Init(argc, argv); + + // We do not this header: chrome/common/chrome_switches.h + // because that would create a dependency back on Chrome + views::RootView::SetPureViews( + CommandLine::ForCurrentProcess()->HasSwitch("use-pure-views")); + examples::ExamplesMain main; main.Run(); |