| OLD | NEW |
| 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 "base/strings/utf_string_conversions.h" | 5 #include "base/strings/utf_string_conversions.h" |
| 6 #include "components/autofill/browser/autocomplete_history_manager.h" | 6 #include "components/autofill/browser/autocomplete_history_manager.h" |
| 7 #include "components/autofill/browser/autofill_external_delegate.h" | 7 #include "components/autofill/browser/autofill_external_delegate.h" |
| 8 #include "components/autofill/browser/autofill_manager.h" | 8 #include "components/autofill/browser/autofill_manager.h" |
| 9 #include "components/autofill/common/autofill_messages.h" | 9 #include "components/autofill/common/autofill_messages.h" |
| 10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 if (type == content::NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED) { | 382 if (type == content::NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED) { |
| 383 if (!*content::Details<bool>(details).ptr()) | 383 if (!*content::Details<bool>(details).ptr()) |
| 384 autofill_manager_->delegate()->HideAutofillPopup(); | 384 autofill_manager_->delegate()->HideAutofillPopup(); |
| 385 } else if (type == content::NOTIFICATION_NAV_ENTRY_COMMITTED) { | 385 } else if (type == content::NOTIFICATION_NAV_ENTRY_COMMITTED) { |
| 386 autofill_manager_->delegate()->HideAutofillPopup(); | 386 autofill_manager_->delegate()->HideAutofillPopup(); |
| 387 } else { | 387 } else { |
| 388 NOTREACHED(); | 388 NOTREACHED(); |
| 389 } | 389 } |
| 390 } | 390 } |
| 391 | 391 |
| 392 bool AutofillExternalDelegate::ShouldSaveFormData( |
| 393 content::WebContents* web_contents) { |
| 394 return true; |
| 395 } |
| 396 |
| 392 } // namespace autofill | 397 } // namespace autofill |
| OLD | NEW |