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

Unified Diff: net/base/keygen_handler_win.cc

Issue 1507413003: clang/win: Let some chromium_code targets build with -Wextra. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_browsertests Created 5 years 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
« no previous file with comments | « media/capture/video/win/video_capture_device_mf_win.cc ('k') | net/cert/test_root_certs_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/keygen_handler_win.cc
diff --git a/net/base/keygen_handler_win.cc b/net/base/keygen_handler_win.cc
index 44365fa136db239c01ec334d51e2d760c57a77a0..e7f10d6618feecd929ed24a1b1e50b440e73a0c5 100644
--- a/net/base/keygen_handler_win.cc
+++ b/net/base/keygen_handler_win.cc
@@ -183,7 +183,7 @@ std::string KeygenHandler::GenKeyAndSignChallenge() {
CRYPT_SILENT | CRYPT_NEWKEYSET))
break;
- if (GetLastError() != NTE_BAD_KEYSET) {
+ if (GetLastError() != static_cast<DWORD>(NTE_BAD_KEYSET)) {
LOG(ERROR) << "Keygen failed: Couldn't acquire a CryptoAPI provider "
"context: " << GetLastError();
return std::string();
« no previous file with comments | « media/capture/video/win/video_capture_device_mf_win.cc ('k') | net/cert/test_root_certs_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698