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

Side by Side Diff: chrome/browser/password_manager/password_manager_delegate_impl.cc

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
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/password_manager/password_manager_delegate_impl.h" 5 #include "chrome/browser/password_manager/password_manager_delegate_impl.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 10 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
11 #include "chrome/browser/infobars/infobar_service.h" 11 #include "chrome/browser/infobars/infobar_service.h"
12 #include "chrome/browser/password_manager/password_form_manager.h" 12 #include "chrome/browser/password_manager/password_form_manager.h"
13 #include "chrome/browser/password_manager/password_manager.h" 13 #include "chrome/browser/password_manager/password_manager.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/ui/sync/one_click_signin_helper.h" 15 #include "chrome/browser/ui/sync/one_click_signin_helper.h"
16 #include "components/autofill/browser/autofill_manager.h" 16 #include "components/autofill/browser/autofill_manager.h"
17 #include "components/autofill/common/autofill_messages.h" 17 #include "components/autofill/common/autofill_messages.h"
18 #include "content/public/browser/navigation_entry.h" 18 #include "content/public/browser/navigation_entry.h"
19 #include "content/public/browser/render_view_host.h" 19 #include "content/public/browser/render_view_host.h"
20 #include "content/public/browser/web_contents.h" 20 #include "content/public/browser/web_contents.h"
21 #include "content/public/common/password_form.h" 21 #include "content/public/common/password_form.h"
22 #include "content/public/common/ssl_status.h" 22 #include "content/public/common/ssl_status.h"
23 #include "google_apis/gaia/gaia_urls.h" 23 #include "google_apis/gaia/gaia_urls.h"
24 #include "grit/chromium_strings.h" 24 #include "grit/chromium_strings.h"
25 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
26 #include "grit/theme_resources.h" 26 #include "grit/theme_resources.h"
27 #include "net/base/cert_status_flags.h" 27 #include "net/cert/cert_status_flags.h"
28 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
29 #include "ui/base/resource/resource_bundle.h" 29 #include "ui/base/resource/resource_bundle.h"
30 30
31 DEFINE_WEB_CONTENTS_USER_DATA_KEY(PasswordManagerDelegateImpl); 31 DEFINE_WEB_CONTENTS_USER_DATA_KEY(PasswordManagerDelegateImpl);
32 32
33 // After a successful *new* login attempt, we take the PasswordFormManager in 33 // After a successful *new* login attempt, we take the PasswordFormManager in
34 // provisional_save_manager_ and move it to a SavePasswordInfoBarDelegate while 34 // provisional_save_manager_ and move it to a SavePasswordInfoBarDelegate while
35 // the user makes up their mind with the "save password" infobar. Note if the 35 // the user makes up their mind with the "save password" infobar. Note if the
36 // login is one we already know about, the end of the line is 36 // login is one we already know about, the end of the line is
37 // provisional_save_manager_ because we just update it on success and so such 37 // provisional_save_manager_ because we just update it on success and so such
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool PasswordManagerDelegateImpl::DidLastPageLoadEncounterSSLErrors() { 188 bool PasswordManagerDelegateImpl::DidLastPageLoadEncounterSSLErrors() {
189 content::NavigationEntry* entry = 189 content::NavigationEntry* entry =
190 web_contents_->GetController().GetActiveEntry(); 190 web_contents_->GetController().GetActiveEntry();
191 if (!entry) { 191 if (!entry) {
192 NOTREACHED(); 192 NOTREACHED();
193 return false; 193 return false;
194 } 194 }
195 195
196 return net::IsCertStatusError(entry->GetSSL().cert_status); 196 return net::IsCertStatusError(entry->GetSSL().cert_status);
197 } 197 }
OLDNEW
« no previous file with comments | « chrome/browser/net/transport_security_persister.cc ('k') | chrome/browser/safe_browsing/download_protection_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698