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

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

Issue 107383002: Use base namespace for string16 in components and cloud_print. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/core/browser/autocomplete_history_manager.h" 5 #include "components/autofill/core/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/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 std::vector<base::string16> suggestions = autofill_result->GetValue(); 78 std::vector<base::string16> suggestions = autofill_result->GetValue();
79 SendSuggestions(&suggestions); 79 SendSuggestions(&suggestions);
80 } 80 }
81 81
82 void AutocompleteHistoryManager::OnGetAutocompleteSuggestions( 82 void AutocompleteHistoryManager::OnGetAutocompleteSuggestions(
83 int query_id, 83 int query_id,
84 const base::string16& name, 84 const base::string16& name,
85 const base::string16& prefix, 85 const base::string16& prefix,
86 const std::vector<base::string16>& autofill_values, 86 const std::vector<base::string16>& autofill_values,
87 const std::vector<base::string16>& autofill_labels, 87 const std::vector<base::string16>& autofill_labels,
88 const std::vector<string16>& autofill_icons, 88 const std::vector<base::string16>& autofill_icons,
89 const std::vector<int>& autofill_unique_ids) { 89 const std::vector<int>& autofill_unique_ids) {
90 CancelPendingQuery(); 90 CancelPendingQuery();
91 91
92 query_id_ = query_id; 92 query_id_ = query_id;
93 autofill_values_ = autofill_values; 93 autofill_values_ = autofill_values;
94 autofill_labels_ = autofill_labels; 94 autofill_labels_ = autofill_labels;
95 autofill_icons_ = autofill_icons; 95 autofill_icons_ = autofill_icons;
96 autofill_unique_ids_ = autofill_unique_ids; 96 autofill_unique_ids_ = autofill_unique_ids;
97 if (!manager_delegate_->IsAutocompleteEnabled()) { 97 if (!manager_delegate_->IsAutocompleteEnabled()) {
98 SendSuggestions(NULL); 98 SendSuggestions(NULL);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 autofill_unique_ids_); 188 autofill_unique_ids_);
189 189
190 query_id_ = 0; 190 query_id_ = 0;
191 autofill_values_.clear(); 191 autofill_values_.clear();
192 autofill_labels_.clear(); 192 autofill_labels_.clear();
193 autofill_icons_.clear(); 193 autofill_icons_.clear();
194 autofill_unique_ids_.clear(); 194 autofill_unique_ids_.clear();
195 } 195 }
196 196
197 } // namespace autofill 197 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/content/browser/wallet/wallet_address.cc ('k') | components/autofill/core/browser/phone_field_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698