OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ui/views/frame/browser_window_property_manager_win.h" | 5 #include "chrome/browser/ui/views/frame/browser_window_property_manager_win.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/prefs/pref_service.h" | |
9 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
10 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
11 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
14 #include "chrome/browser/profiles/profile_shortcut_manager_win.h" | 13 #include "chrome/browser/profiles/profile_shortcut_manager_win.h" |
15 #include "chrome/browser/shell_integration.h" | 14 #include "chrome/browser/shell_integration.h" |
16 #include "chrome/browser/ui/host_desktop.h" | 15 #include "chrome/browser/ui/host_desktop.h" |
17 #include "chrome/browser/ui/views/frame/browser_view.h" | 16 #include "chrome/browser/ui/views/frame/browser_view.h" |
18 #include "chrome/browser/web_applications/web_app.h" | 17 #include "chrome/browser/web_applications/web_app.h" |
19 #include "chrome/browser/web_applications/web_app_win.h" | 18 #include "chrome/browser/web_applications/web_app_win.h" |
20 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 20 #include "components/prefs/pref_service.h" |
21 #include "extensions/browser/extension_registry.h" | 21 #include "extensions/browser/extension_registry.h" |
22 #include "ui/base/win/shell.h" | 22 #include "ui/base/win/shell.h" |
23 #include "ui/views/win/hwnd_util.h" | 23 #include "ui/views/win/hwnd_util.h" |
24 | 24 |
25 using extensions::ExtensionRegistry; | 25 using extensions::ExtensionRegistry; |
26 | 26 |
27 BrowserWindowPropertyManager::BrowserWindowPropertyManager(BrowserView* view, | 27 BrowserWindowPropertyManager::BrowserWindowPropertyManager(BrowserView* view, |
28 HWND hwnd) | 28 HWND hwnd) |
29 : view_(view), | 29 : view_(view), |
30 hwnd_(hwnd) { | 30 hwnd_(hwnd) { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 scoped_ptr<BrowserWindowPropertyManager> browser_window_property_manager( | 109 scoped_ptr<BrowserWindowPropertyManager> browser_window_property_manager( |
110 new BrowserWindowPropertyManager(view, hwnd)); | 110 new BrowserWindowPropertyManager(view, hwnd)); |
111 browser_window_property_manager->UpdateWindowProperties(); | 111 browser_window_property_manager->UpdateWindowProperties(); |
112 return browser_window_property_manager.Pass(); | 112 return browser_window_property_manager.Pass(); |
113 } | 113 } |
114 | 114 |
115 void BrowserWindowPropertyManager::OnProfileIconVersionChange() { | 115 void BrowserWindowPropertyManager::OnProfileIconVersionChange() { |
116 UpdateWindowProperties(); | 116 UpdateWindowProperties(); |
117 } | 117 } |
OLD | NEW |