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

Side by Side Diff: chrome/browser/ui/views/certificate_viewer_win.cc

Issue 1845083003: Remove "#pragma comment(lib" in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 "chrome/browser/certificate_viewer.h" 5 #include "chrome/browser/certificate_viewer.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <cryptuiapi.h> 8 #include <cryptuiapi.h>
9 #pragma comment(lib, "cryptui.lib")
10 9
11 #include "base/bind.h" 10 #include "base/bind.h"
12 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
13 #include "base/location.h" 12 #include "base/location.h"
14 #include "base/logging.h" 13 #include "base/logging.h"
15 #include "base/macros.h" 14 #include "base/macros.h"
16 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
17 #include "base/task_runner.h" 16 #include "base/task_runner.h"
18 #include "base/threading/thread.h" 17 #include "base/threading/thread.h"
19 #include "net/cert/x509_certificate.h" 18 #include "net/cert/x509_certificate.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } // namespace 84 } // namespace
86 85
87 void ShowCertificateViewer(content::WebContents* web_contents, 86 void ShowCertificateViewer(content::WebContents* web_contents,
88 gfx::NativeWindow parent, 87 gfx::NativeWindow parent,
89 net::X509Certificate* cert) { 88 net::X509Certificate* cert) {
90 CertificateViewerDialog* dialog = new CertificateViewerDialog; 89 CertificateViewerDialog* dialog = new CertificateViewerDialog;
91 dialog->Show( 90 dialog->Show(
92 parent->GetHost()->GetAcceleratedWidget(), cert, 91 parent->GetHost()->GetAcceleratedWidget(), cert,
93 base::Bind(&base::DeletePointer<CertificateViewerDialog>, dialog)); 92 base::Bind(&base::DeletePointer<CertificateViewerDialog>, dialog));
94 } 93 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698