Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: chrome/browser/ui/views/frame/browser_window_property_manager_win.cc

Issue 2909943003: Removing useless Win7 checks + standardize its use (Closed)
Patch Set: Various nits Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/win/windows_version.h" 9 #include "base/win/windows_version.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 ui::win::SetAppDetailsForWindow(app_id, icon_path, 0, command_line_string, 91 ui::win::SetAppDetailsForWindow(app_id, icon_path, 0, command_line_string,
92 pinned_name, hwnd_); 92 pinned_name, hwnd_);
93 } 93 }
94 94
95 // static 95 // static
96 std::unique_ptr<BrowserWindowPropertyManager> 96 std::unique_ptr<BrowserWindowPropertyManager>
97 BrowserWindowPropertyManager::CreateBrowserWindowPropertyManager( 97 BrowserWindowPropertyManager::CreateBrowserWindowPropertyManager(
98 BrowserView* view, 98 BrowserView* view,
99 HWND hwnd) { 99 HWND hwnd) {
100 if (base::win::GetVersion() < base::win::VERSION_WIN7)
101 return nullptr;
102
103 std::unique_ptr<BrowserWindowPropertyManager> browser_window_property_manager( 100 std::unique_ptr<BrowserWindowPropertyManager> browser_window_property_manager(
104 new BrowserWindowPropertyManager(view, hwnd)); 101 new BrowserWindowPropertyManager(view, hwnd));
105 browser_window_property_manager->UpdateWindowProperties(); 102 browser_window_property_manager->UpdateWindowProperties();
106 return browser_window_property_manager; 103 return browser_window_property_manager;
107 } 104 }
108 105
109 void BrowserWindowPropertyManager::OnProfileIconVersionChange() { 106 void BrowserWindowPropertyManager::OnProfileIconVersionChange() {
110 UpdateWindowProperties(); 107 UpdateWindowProperties();
111 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698