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

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

Issue 745333002: Remove implicit conversions from scoped_refptr to T* in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 23 matching lines...) Expand all
34 BrowserDistribution::GetDistribution(), 34 BrowserDistribution::GetDistribution(),
35 InstallUtil::IsPerUserInstall(chrome_exe.value().c_str())); 35 InstallUtil::IsPerUserInstall(chrome_exe.value().c_str()));
36 if (app_id.empty()) { 36 if (app_id.empty()) {
37 NOTREACHED() << "Failed to get chrome app user model id."; 37 NOTREACHED() << "Failed to get chrome app user model id.";
38 return false; 38 return false;
39 } 39 }
40 40
41 base::win::ScopedComPtr<IApplicationActivationManager> activation_manager; 41 base::win::ScopedComPtr<IApplicationActivationManager> activation_manager;
42 HRESULT hr = activation_manager.CreateInstance( 42 HRESULT hr = activation_manager.CreateInstance(
43 CLSID_ApplicationActivationManager); 43 CLSID_ApplicationActivationManager);
44 if (!activation_manager) { 44 if (!activation_manager.get()) {
45 NOTREACHED() << "Failed to cocreate activation manager. Error: " 45 NOTREACHED() << "Failed to cocreate activation manager. Error: "
46 << std::showbase << std::hex << hr; 46 << std::showbase << std::hex << hr;
47 return false; 47 return false;
48 } 48 }
49 49
50 unsigned long pid = 0; 50 unsigned long pid = 0;
51 hr = activation_manager->ActivateApplication(app_id.c_str(), 51 hr = activation_manager->ActivateApplication(app_id.c_str(),
52 L"open", 52 L"open",
53 AO_NONE, 53 AO_NONE,
54 &pid); 54 &pid);
(...skipping 15 matching lines...) Expand all
70 #else 70 #else
71 if (base::win::IsProcessImmersive(::GetCurrentProcess())) 71 if (base::win::IsProcessImmersive(::GetCurrentProcess()))
72 return WIN_8_ENVIRONMENT_METRO; 72 return WIN_8_ENVIRONMENT_METRO;
73 else 73 else
74 return WIN_8_ENVIRONMENT_DESKTOP; 74 return WIN_8_ENVIRONMENT_DESKTOP;
75 #endif 75 #endif
76 } 76 }
77 77
78 78
79 } // namespace chrome 79 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/shell_integration_win.cc » ('j') | chrome/browser/shell_integration_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698