OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chrome_browser_main_extra_parts_views.h" | 5 #include "chrome/browser/chrome_browser_main_extra_parts_views.h" |
6 | 6 |
7 #include <string> | |
8 | |
9 #include "base/command_line.h" | |
10 #include "chrome/browser/ui/views/chrome_views_delegate.h" | 7 #include "chrome/browser/ui/views/chrome_views_delegate.h" |
11 #include "chrome/common/chrome_switches.h" | |
12 #include "ui/views/widget/widget.h" | |
13 | 8 |
14 ChromeBrowserMainExtraPartsViews::ChromeBrowserMainExtraPartsViews() | 9 ChromeBrowserMainExtraPartsViews::ChromeBrowserMainExtraPartsViews() |
15 : ChromeBrowserMainExtraParts() { | 10 : ChromeBrowserMainExtraParts() { |
16 } | 11 } |
17 | 12 |
18 void ChromeBrowserMainExtraPartsViews::ToolkitInitialized() { | 13 void ChromeBrowserMainExtraPartsViews::ToolkitInitialized() { |
19 // The delegate needs to be set before any UI is created so that windows | 14 // The delegate needs to be set before any UI is created so that windows |
20 // display the correct icon. | 15 // display the correct icon. |
21 if (!views::ViewsDelegate::views_delegate) | 16 if (!views::ViewsDelegate::views_delegate) |
22 views::ViewsDelegate::views_delegate = new ChromeViewsDelegate; | 17 views::ViewsDelegate::views_delegate = new ChromeViewsDelegate; |
23 } | 18 } |
OLD | NEW |