OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/autocomplete_history_manager.h" | 5 #include "chrome/browser/autocomplete_history_manager.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
258 if (unique) { | 258 if (unique) { |
259 autofill_values_.push_back((*suggestions)[i]); | 259 autofill_values_.push_back((*suggestions)[i]); |
260 autofill_labels_.push_back(string16()); | 260 autofill_labels_.push_back(string16()); |
261 autofill_icons_.push_back(string16()); | 261 autofill_icons_.push_back(string16()); |
262 autofill_unique_ids_.push_back(0); // 0 means no profile. | 262 autofill_unique_ids_.push_back(0); // 0 means no profile. |
263 } | 263 } |
264 } | 264 } |
265 } | 265 } |
266 | 266 |
267 if (external_delegate_) { | 267 if (external_delegate_) { |
268 Send(new AutofillMsg_HasExternalDelegate(routing_id(), true)); | |
Ilya Sherman
2011/11/07 21:48:49
How about instead calling this within AutofillMana
csharp1
2011/11/08 19:59:00
That doesn't seem to work. Although the Send funct
Ilya Sherman
2011/11/08 21:06:16
Ah, that's irksome. Now that I think about this a
csharp
2011/11/09 16:18:37
Seems like a good solution, changes made.
On 2011
| |
268 external_delegate_->OnSuggestionsReturned( | 269 external_delegate_->OnSuggestionsReturned( |
269 query_id_, | 270 query_id_, |
270 autofill_values_, | 271 autofill_values_, |
271 autofill_labels_, | 272 autofill_labels_, |
272 autofill_icons_, | 273 autofill_icons_, |
273 autofill_unique_ids_); | 274 autofill_unique_ids_); |
274 } | 275 } |
275 | 276 |
276 Send(new AutofillMsg_SuggestionsReturned(routing_id(), | 277 Send(new AutofillMsg_SuggestionsReturned(routing_id(), |
277 query_id_, | 278 query_id_, |
278 autofill_values_, | 279 autofill_values_, |
279 autofill_labels_, | 280 autofill_labels_, |
280 autofill_icons_, | 281 autofill_icons_, |
281 autofill_unique_ids_)); | 282 autofill_unique_ids_)); |
282 | 283 |
283 query_id_ = 0; | 284 query_id_ = 0; |
284 autofill_values_.clear(); | 285 autofill_values_.clear(); |
285 autofill_labels_.clear(); | 286 autofill_labels_.clear(); |
286 autofill_icons_.clear(); | 287 autofill_icons_.clear(); |
287 autofill_unique_ids_.clear(); | 288 autofill_unique_ids_.clear(); |
288 } | 289 } |
OLD | NEW |