| 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/utf_string_conversions.h" |    5 #include "base/utf_string_conversions.h" | 
|    6 #include "chrome/browser/autofill/autocomplete_history_manager.h" |    6 #include "chrome/browser/autofill/autocomplete_history_manager.h" | 
|    7 #include "chrome/browser/autofill/autofill_external_delegate.h" |    7 #include "chrome/browser/autofill/autofill_external_delegate.h" | 
|    8 #include "chrome/browser/autofill/autofill_manager.h" |    8 #include "chrome/browser/autofill/autofill_manager.h" | 
|    9 #include "chrome/common/autofill_messages.h" |  | 
|   10 #include "chrome/common/chrome_constants.h" |    9 #include "chrome/common/chrome_constants.h" | 
 |   10 #include "components/autofill/common/autofill_messages.h" | 
|   11 #include "content/public/browser/navigation_controller.h" |   11 #include "content/public/browser/navigation_controller.h" | 
|   12 #include "content/public/browser/notification_service.h" |   12 #include "content/public/browser/notification_service.h" | 
|   13 #include "content/public/browser/notification_source.h" |   13 #include "content/public/browser/notification_source.h" | 
|   14 #include "content/public/browser/notification_types.h" |   14 #include "content/public/browser/notification_types.h" | 
|   15 #include "content/public/browser/render_view_host.h" |   15 #include "content/public/browser/render_view_host.h" | 
|   16 #include "content/public/browser/web_contents.h" |   16 #include "content/public/browser/web_contents.h" | 
|   17 #include "grit/chromium_strings.h" |   17 #include "grit/chromium_strings.h" | 
|   18 #include "grit/generated_resources.h" |   18 #include "grit/generated_resources.h" | 
|   19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" |   19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" | 
|   20 #include "ui/base/l10n/l10n_util.h" |   20 #include "ui/base/l10n/l10n_util.h" | 
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  374     const content::NotificationDetails& details) { |  374     const content::NotificationDetails& details) { | 
|  375   if (type == content::NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED) { |  375   if (type == content::NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED) { | 
|  376     if (!*content::Details<bool>(details).ptr()) |  376     if (!*content::Details<bool>(details).ptr()) | 
|  377       autofill_manager_->delegate()->HideAutofillPopup(); |  377       autofill_manager_->delegate()->HideAutofillPopup(); | 
|  378   } else if (type == content::NOTIFICATION_NAV_ENTRY_COMMITTED) { |  378   } else if (type == content::NOTIFICATION_NAV_ENTRY_COMMITTED) { | 
|  379     autofill_manager_->delegate()->HideAutofillPopup(); |  379     autofill_manager_->delegate()->HideAutofillPopup(); | 
|  380   } else { |  380   } else { | 
|  381     NOTREACHED(); |  381     NOTREACHED(); | 
|  382   } |  382   } | 
|  383 } |  383 } | 
| OLD | NEW |