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

Side by Side Diff: chrome/browser/metro_utils/metro_chrome_win.cc

Issue 1336823003: Move chrome::HostDesktopType to ui::HostDesktopType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_session_service_delegate_impl
Patch Set: Fix build on Mac and CrOS Created 5 years, 3 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/metro_utils/metro_chrome_win.h" 5 #include "chrome/browser/metro_utils/metro_chrome_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shobjidl.h> 8 #include <shobjidl.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 &pid); 54 &pid);
55 if (FAILED(hr)) { 55 if (FAILED(hr)) {
56 NOTREACHED() << "Failed to activate metro chrome. Error: " 56 NOTREACHED() << "Failed to activate metro chrome. Error: "
57 << std::showbase << std::hex << hr; 57 << std::showbase << std::hex << hr;
58 return false; 58 return false;
59 } 59 }
60 60
61 return true; 61 return true;
62 } 62 }
63 63
64 Win8Environment GetWin8Environment(HostDesktopType desktop) { 64 Win8Environment GetWin8Environment(ui::HostDesktopType desktop) {
65 if (desktop == chrome::HOST_DESKTOP_TYPE_ASH) 65 if (desktop == ui::HOST_DESKTOP_TYPE_ASH)
66 return WIN_8_ENVIRONMENT_METRO_AURA; 66 return WIN_8_ENVIRONMENT_METRO_AURA;
67 else 67 else
68 return WIN_8_ENVIRONMENT_DESKTOP_AURA; 68 return WIN_8_ENVIRONMENT_DESKTOP_AURA;
69 } 69 }
70 70
71 71
72 } // namespace chrome 72 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698