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

Side by Side Diff: chrome/browser/autocomplete/history_url_provider.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again 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 | Annotate | Revision Log
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 "chrome/browser/autocomplete/history_url_provider.h" 5 #include "chrome/browser/autocomplete/history_url_provider.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 type_ = UNVISITED_INTRANET; 288 type_ = UNVISITED_INTRANET;
289 } 289 }
290 } 290 }
291 291
292 HistoryURLProviderParams::HistoryURLProviderParams( 292 HistoryURLProviderParams::HistoryURLProviderParams(
293 const AutocompleteInput& input, 293 const AutocompleteInput& input,
294 bool trim_http, 294 bool trim_http,
295 const std::string& languages, 295 const std::string& languages,
296 TemplateURL* default_search_provider, 296 TemplateURL* default_search_provider,
297 const SearchTermsData& search_terms_data) 297 const SearchTermsData& search_terms_data)
298 : message_loop(MessageLoop::current()), 298 : message_loop(base::MessageLoop::current()),
299 input(input), 299 input(input),
300 prevent_inline_autocomplete(input.prevent_inline_autocomplete()), 300 prevent_inline_autocomplete(input.prevent_inline_autocomplete()),
301 trim_http(trim_http), 301 trim_http(trim_http),
302 failed(false), 302 failed(false),
303 languages(languages), 303 languages(languages),
304 dont_suggest_exact_input(false), 304 dont_suggest_exact_input(false),
305 default_search_provider(default_search_provider ? 305 default_search_provider(default_search_provider ?
306 new TemplateURL(default_search_provider->profile(), 306 new TemplateURL(default_search_provider->profile(),
307 default_search_provider->data()) : NULL), 307 default_search_provider->data()) : NULL),
308 search_terms_data(new SearchTermsDataSnapshot(search_terms_data)) { 308 search_terms_data(new SearchTermsDataSnapshot(search_terms_data)) {
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 &match.contents_class); 1076 &match.contents_class);
1077 } 1077 }
1078 match.description = info.title(); 1078 match.description = info.title();
1079 AutocompleteMatch::ClassifyMatchInString(params->input.text(), 1079 AutocompleteMatch::ClassifyMatchInString(params->input.text(),
1080 info.title(), 1080 info.title(),
1081 ACMatchClassification::NONE, 1081 ACMatchClassification::NONE,
1082 &match.description_class); 1082 &match.description_class);
1083 RecordAdditionalInfoFromUrlRow(info, &match); 1083 RecordAdditionalInfoFromUrlRow(info, &match);
1084 return match; 1084 return match;
1085 } 1085 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698