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

Side by Side Diff: chrome/browser/ui/certificate_dialogs.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/certificate_dialogs.h" 5 #include "chrome/browser/ui/certificate_dialogs.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/base64.h" 13 #include "base/base64.h"
13 #include "base/bind.h" 14 #include "base/bind.h"
14 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
15 #include "base/logging.h" 16 #include "base/logging.h"
16 #include "base/memory/scoped_ptr.h"
17 #include "chrome/browser/ui/chrome_select_file_policy.h" 17 #include "chrome/browser/ui/chrome_select_file_policy.h"
18 #include "chrome/common/net/x509_certificate_model.h" 18 #include "chrome/common/net/x509_certificate_model.h"
19 #include "chrome/grit/generated_resources.h" 19 #include "chrome/grit/generated_resources.h"
20 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 #include "net/base/filename_util.h" 21 #include "net/base/filename_util.h"
22 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
23 #include "ui/shell_dialogs/select_file_dialog.h" 23 #include "ui/shell_dialogs/select_file_dialog.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 using content::BrowserThread; 26 using content::BrowserThread;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 new Exporter(web_contents, parent, cert_chain.begin(), cert_chain.end()); 209 new Exporter(web_contents, parent, cert_chain.begin(), cert_chain.end());
210 } 210 }
211 211
212 void ShowCertExportDialog( 212 void ShowCertExportDialog(
213 content::WebContents* web_contents, 213 content::WebContents* web_contents,
214 gfx::NativeWindow parent, 214 gfx::NativeWindow parent,
215 net::X509Certificate::OSCertHandles::iterator certs_begin, 215 net::X509Certificate::OSCertHandles::iterator certs_begin,
216 net::X509Certificate::OSCertHandles::iterator certs_end) { 216 net::X509Certificate::OSCertHandles::iterator certs_end) {
217 new Exporter(web_contents, parent, certs_begin, certs_end); 217 new Exporter(web_contents, parent, certs_begin, certs_end);
218 } 218 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_window_state.cc ('k') | chrome/browser/ui/chrome_bubble_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698