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

Side by Side Diff: net/http/url_security_manager_win.cc

Issue 2824773002: Rename ScopedComPtr::get() to ScopedComPtr::Get() (Closed)
Patch Set: Update to 5293966 Created 3 years, 8 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
« no previous file with comments | « media/midi/midi_manager_winrt.cc ('k') | printing/backend/print_backend_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "net/http/url_security_manager.h" 5 #include "net/http/url_security_manager.h"
6 6
7 #include <urlmon.h> 7 #include <urlmon.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // TODO(wtc): we should fail the authentication. 96 // TODO(wtc): we should fail the authentication.
97 return false; 97 return false;
98 default: 98 default:
99 NOTREACHED(); 99 NOTREACHED();
100 return false; 100 return false;
101 } 101 }
102 } 102 }
103 // TODO(cbentzel): Could CanDelegate use the security zone as well? 103 // TODO(cbentzel): Could CanDelegate use the security zone as well?
104 104
105 bool URLSecurityManagerWin::EnsureSystemSecurityManager() { 105 bool URLSecurityManagerWin::EnsureSystemSecurityManager() {
106 if (!security_manager_.get()) { 106 if (!security_manager_.Get()) {
107 HRESULT hr = CoInternetCreateSecurityManager(NULL, 107 HRESULT hr = CoInternetCreateSecurityManager(NULL,
108 security_manager_.Receive(), 108 security_manager_.Receive(),
109 NULL); 109 NULL);
110 if (FAILED(hr) || !security_manager_.get()) { 110 if (FAILED(hr) || !security_manager_.Get()) {
111 LOG(ERROR) << "Unable to create the Windows Security Manager instance"; 111 LOG(ERROR) << "Unable to create the Windows Security Manager instance";
112 return false; 112 return false;
113 } 113 }
114 } 114 }
115 return true; 115 return true;
116 } 116 }
117 117
118 // static 118 // static
119 URLSecurityManager* URLSecurityManager::Create() { 119 URLSecurityManager* URLSecurityManager::Create() {
120 return new URLSecurityManagerWin; 120 return new URLSecurityManagerWin;
121 } 121 }
122 122
123 } // namespace net 123 } // namespace net
OLDNEW
« no previous file with comments | « media/midi/midi_manager_winrt.cc ('k') | printing/backend/print_backend_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698