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

Unified Diff: ui/base/win/shell.cc

Issue 1581473002: Remove base/win/metro.{cc|h} and some associated code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/win/shell.cc
diff --git a/ui/base/win/shell.cc b/ui/base/win/shell.cc
index 4a4801856b9746707d1615fc6f6f3c0ac6ec07f8..8dacd14ce4e93951c093b2e1fb5a817d2695b85f 100644
--- a/ui/base/win/shell.cc
+++ b/ui/base/win/shell.cc
@@ -16,7 +16,6 @@
#include "base/native_library.h"
#include "base/strings/string_util.h"
#include "base/threading/thread_restrictions.h"
-#include "base/win/metro.h"
#include "base/win/scoped_comptr.h"
#include "base/win/win_util.h"
#include "base/win/windows_version.h"
@@ -99,10 +98,8 @@ bool OpenFolderViaShell(const base::FilePath& full_path) {
bool PreventWindowFromPinning(HWND hwnd) {
DCHECK(hwnd);
- // This functionality is only available on Win7+. It also doesn't make sense
- // to do this for Chrome Metro.
- if (base::win::GetVersion() < base::win::VERSION_WIN7 ||
- base::win::IsMetroProcess())
+ // This functionality is only available on Win7+.
+ if (base::win::GetVersion() < base::win::VERSION_WIN7)
return false;
base::win::ScopedComPtr<IPropertyStore> pps;
@@ -123,10 +120,8 @@ void SetAppDetailsForWindow(const base::string16& app_id,
HWND hwnd) {
DCHECK(hwnd);
- // This functionality is only available on Win7+. It also doesn't make sense
- // to do this for Chrome Metro.
- if (base::win::GetVersion() < base::win::VERSION_WIN7 ||
- base::win::IsMetroProcess())
+ // This functionality is only available on Win7+.
+ if (base::win::GetVersion() < base::win::VERSION_WIN7)
return;
base::win::ScopedComPtr<IPropertyStore> pps;
@@ -181,10 +176,8 @@ void SetRelaunchDetailsForWindow(const base::string16& relaunch_command,
void ClearWindowPropertyStore(HWND hwnd) {
DCHECK(hwnd);
- // This functionality is only available on Win7+. It also doesn't make sense
- // to do this for Chrome Metro.
- if (base::win::GetVersion() < base::win::VERSION_WIN7 ||
- base::win::IsMetroProcess())
+ // This functionality is only available on Win7+.
+ if (base::win::GetVersion() < base::win::VERSION_WIN7)
return;
base::win::ScopedComPtr<IPropertyStore> pps;

Powered by Google App Engine
This is Rietveld 408576698