Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / views / chrome_browser_main_extra_parts_views.cc
blob922a728adef2b49d1a10d93bbca728f1abfb51b4
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h"
7 #include "chrome/browser/chrome_browser_main.h"
8 #include "chrome/browser/ui/views/chrome_views_delegate.h"
9 #include "chrome/common/chrome_switches.h"
10 #include "ui/base/ui_base_switches.h"
12 #if defined(USE_AURA)
13 #include "ui/views/corewm/wm_state.h"
14 #endif
16 ChromeBrowserMainExtraPartsViews::ChromeBrowserMainExtraPartsViews() {
19 ChromeBrowserMainExtraPartsViews::~ChromeBrowserMainExtraPartsViews() {
22 void ChromeBrowserMainExtraPartsViews::ToolkitInitialized() {
23 // The delegate needs to be set before any UI is created so that windows
24 // display the correct icon.
25 if (!views::ViewsDelegate::views_delegate)
26 views::ViewsDelegate::views_delegate = new ChromeViewsDelegate;
28 #if defined(USE_AURA)
29 wm_state_.reset(new views::corewm::WMState);
30 #endif