OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "base/win/metro.h" | 5 #include "base/win/metro.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
8 #include "base/win/windows_version.h" | 10 #include "base/win/windows_version.h" |
9 | 11 |
10 namespace base { | 12 namespace base { |
11 namespace win { | 13 namespace win { |
12 | 14 |
13 bool IsChromeMetroSupported() { | 15 bool IsChromeMetroSupported() { |
14 const Version win_version = GetVersion(); | 16 const Version win_version = GetVersion(); |
15 return win_version >= VERSION_WIN8 && win_version < VERSION_WIN10; | 17 return win_version >= VERSION_WIN8 && win_version < VERSION_WIN10; |
16 } | 18 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 reinterpret_cast<GetInitialSearchString>( | 109 reinterpret_cast<GetInitialSearchString>( |
108 ::GetProcAddress(metro, "GetInitialSearchString")); | 110 ::GetProcAddress(metro, "GetInitialSearchString")); |
109 DCHECK(initial_search_string); | 111 DCHECK(initial_search_string); |
110 *params = initial_search_string(); | 112 *params = initial_search_string(); |
111 } | 113 } |
112 return launch_type; | 114 return launch_type; |
113 } | 115 } |
114 | 116 |
115 } // namespace win | 117 } // namespace win |
116 } // namespace base | 118 } // namespace base |
OLD | NEW |