diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-08 13:43:51 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-08 13:43:51 +0000 |
commit | a39aa53a7acabb03a86a5be5c663d6ae47215440 (patch) | |
tree | e304aa2f39c6103bf75d151c41730f43d9111b1a /chrome/browser/autocomplete_history_manager.h | |
parent | a5e04eafb781ce5739ab08398bc7ded7ed512116 (diff) | |
download | chromium_src-a39aa53a7acabb03a86a5be5c663d6ae47215440.zip chromium_src-a39aa53a7acabb03a86a5be5c663d6ae47215440.tar.gz chromium_src-a39aa53a7acabb03a86a5be5c663d6ae47215440.tar.bz2 |
Backing this out to see if it fixes the failures on the two windows bots (landed about when they started).
Revert 49030 - AutoFill: Don't save credit card numbers from Autocomplete to the WebDB.
BUG=8026
TEST=AutocompleteHistoryManagerTest
Review URL: http://codereview.chromium.org/2676003
TBR=jhawkins@chromium.org
Review URL: http://codereview.chromium.org/2748002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete_history_manager.h')
-rw-r--r-- | chrome/browser/autocomplete_history_manager.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/chrome/browser/autocomplete_history_manager.h b/chrome/browser/autocomplete_history_manager.h index 4e87bd6..2f8fe5e 100644 --- a/chrome/browser/autocomplete_history_manager.h +++ b/chrome/browser/autocomplete_history_manager.h @@ -5,6 +5,8 @@ #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_ #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_ +#include <string> + #include "chrome/browser/pref_member.h" #include "chrome/browser/renderer_host/render_view_host_delegate.h" #include "chrome/browser/webdata/web_data_service.h" @@ -25,6 +27,8 @@ class AutocompleteHistoryManager explicit AutocompleteHistoryManager(TabContents* tab_contents); virtual ~AutocompleteHistoryManager(); + Profile* profile(); + // RenderViewHostDelegate::Autocomplete implementation. virtual void FormSubmitted(const webkit_glue::FormData& form); virtual bool GetAutocompleteSuggestions(int query_id, @@ -37,22 +41,14 @@ class AutocompleteHistoryManager virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, const WDTypedResult* result); - protected: - friend class AutocompleteHistoryManagerTest; - - // For tests. - AutocompleteHistoryManager(Profile* profile, WebDataService* wds); - private: void CancelPendingQuery(); void StoreFormEntriesInWebDatabase(const webkit_glue::FormData& form); void SendSuggestions(const WDTypedResult* suggestions); TabContents* tab_contents_; - Profile* profile_; - scoped_refptr<WebDataService> web_data_service_; - BooleanPrefMember autofill_enabled_; + BooleanPrefMember form_autofill_enabled_; // When the manager makes a request from WebDataService, the database // is queried on another thread, we record the query handle until we |