Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / components / password_manager / content / browser / content_password_manager_driver.cc
index 822cc80..35b3820 100644 (file)
@@ -42,9 +42,9 @@ void ContentPasswordManagerDriver::FillPasswordForm(
 }
 
 void ContentPasswordManagerDriver::AllowPasswordGenerationForForm(
-    autofill::PasswordForm* form) {
+    const autofill::PasswordForm& form) {
   content::RenderViewHost* host = web_contents()->GetRenderViewHost();
-  host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), *form));
+  host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(), form));
 }
 
 void ContentPasswordManagerDriver::AccountCreationFormsFound(
@@ -82,10 +82,11 @@ void ContentPasswordManagerDriver::ClearPreviewedForm() {
 
 bool ContentPasswordManagerDriver::DidLastPageLoadEncounterSSLErrors() {
   DCHECK(web_contents());
+  // TODO(vabr): This is a wrong entry to look at for HTTP basic auth,
+  // http://crbug.com/388246.
   content::NavigationEntry* entry =
       web_contents()->GetController().GetLastCommittedEntry();
   if (!entry) {
-    NOTREACHED();
     return false;
   }