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

Side by Side Diff: components/autofill/browser/autocomplete_history_manager.cc

Issue 16625004: components: Move user_prefs into user_prefs namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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
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 "components/autofill/browser/autocomplete_history_manager.h" 5 #include "components/autofill/browser/autocomplete_history_manager.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 WebContents* web_contents) 45 WebContents* web_contents)
46 : content::WebContentsObserver(web_contents), 46 : content::WebContentsObserver(web_contents),
47 browser_context_(web_contents->GetBrowserContext()), 47 browser_context_(web_contents->GetBrowserContext()),
48 autofill_data_( 48 autofill_data_(
49 AutofillWebDataService::FromBrowserContext(browser_context_)), 49 AutofillWebDataService::FromBrowserContext(browser_context_)),
50 pending_query_handle_(0), 50 pending_query_handle_(0),
51 query_id_(0), 51 query_id_(0),
52 external_delegate_(NULL) { 52 external_delegate_(NULL) {
53 autofill_enabled_.Init( 53 autofill_enabled_.Init(
54 prefs::kAutofillEnabled, 54 prefs::kAutofillEnabled,
55 components::UserPrefs::Get(browser_context_)); 55 user_prefs::UserPrefs::Get(browser_context_));
56 } 56 }
57 57
58 AutocompleteHistoryManager::~AutocompleteHistoryManager() { 58 AutocompleteHistoryManager::~AutocompleteHistoryManager() {
59 CancelPendingQuery(); 59 CancelPendingQuery();
60 } 60 }
61 61
62 bool AutocompleteHistoryManager::OnMessageReceived( 62 bool AutocompleteHistoryManager::OnMessageReceived(
63 const IPC::Message& message) { 63 const IPC::Message& message) {
64 bool handled = true; 64 bool handled = true;
65 IPC_BEGIN_MESSAGE_MAP(AutocompleteHistoryManager, message) 65 IPC_BEGIN_MESSAGE_MAP(AutocompleteHistoryManager, message)
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 217
218 query_id_ = 0; 218 query_id_ = 0;
219 autofill_values_.clear(); 219 autofill_values_.clear();
220 autofill_labels_.clear(); 220 autofill_labels_.clear();
221 autofill_icons_.clear(); 221 autofill_icons_.clear();
222 autofill_unique_ids_.clear(); 222 autofill_unique_ids_.clear();
223 } 223 }
224 224
225 } // namespace autofill 225 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | components/autofill/browser/autofill_common_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698