Index: chrome/browser/prefs/incognito_mode_prefs.cc |
diff --git a/chrome/browser/prefs/incognito_mode_prefs.cc b/chrome/browser/prefs/incognito_mode_prefs.cc |
index 6b36b33c9aa090a06b1d2fd40cb34891d3ab7374..b5324b392c822ef6665b0a81120c2cbeb05005b6 100644 |
--- a/chrome/browser/prefs/incognito_mode_prefs.cc |
+++ b/chrome/browser/prefs/incognito_mode_prefs.cc |
@@ -23,6 +23,7 @@ |
#if defined(OS_WIN) |
#include <windows.h> |
+#include <objbase.h> |
#include <wpcapi.h> |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
@@ -102,8 +103,8 @@ class PlatformParentalControlsValue { |
// is enabled. |
static bool IsParentalControlActivityLoggingOnImpl() { |
base::win::ScopedComPtr<IWindowsParentalControlsCore> parent_controls; |
- HRESULT hr = parent_controls.CreateInstance( |
- __uuidof(WindowsParentalControls)); |
+ HRESULT hr = ::CoCreateInstance(__uuidof(WindowsParentalControls), nullptr, |
+ CLSCTX_ALL, IID_PPV_ARGS(&parent_controls)); |
if (FAILED(hr)) |
return false; |