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

Side by Side Diff: components/omnibox/browser/base_search_provider.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/omnibox/browser/base_search_provider.h" 5 #include "components/omnibox/browser/base_search_provider.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/i18n/case_conversion.h" 10 #include "base/i18n/case_conversion.h"
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 } 445 }
446 } 446 }
447 447
448 bool BaseSearchProvider::ParseSuggestResults( 448 bool BaseSearchProvider::ParseSuggestResults(
449 const base::Value& root_val, 449 const base::Value& root_val,
450 int default_result_relevance, 450 int default_result_relevance,
451 bool is_keyword_result, 451 bool is_keyword_result,
452 SearchSuggestionParser::Results* results) { 452 SearchSuggestionParser::Results* results) {
453 if (!SearchSuggestionParser::ParseSuggestResults( 453 if (!SearchSuggestionParser::ParseSuggestResults(
454 root_val, GetInput(is_keyword_result), client_->GetSchemeClassifier(), 454 root_val, GetInput(is_keyword_result), client_->GetSchemeClassifier(),
455 default_result_relevance, client_->GetAcceptLanguages(), 455 default_result_relevance, is_keyword_result, results))
456 is_keyword_result, results))
457 return false; 456 return false;
458 457
459 for (const GURL& url : results->answers_image_urls) 458 for (const GURL& url : results->answers_image_urls)
460 client_->PrefetchImage(url); 459 client_->PrefetchImage(url);
461 460
462 field_trial_triggered_ |= results->field_trial_triggered; 461 field_trial_triggered_ |= results->field_trial_triggered;
463 field_trial_triggered_in_session_ |= results->field_trial_triggered; 462 field_trial_triggered_in_session_ |= results->field_trial_triggered;
464 return true; 463 return true;
465 } 464 }
466 465
(...skipping 14 matching lines...) Expand all
481 480
482 void BaseSearchProvider::OnDeletionComplete( 481 void BaseSearchProvider::OnDeletionComplete(
483 bool success, SuggestionDeletionHandler* handler) { 482 bool success, SuggestionDeletionHandler* handler) {
484 RecordDeletionResult(success); 483 RecordDeletionResult(success);
485 deletion_handlers_.erase(std::remove_if( 484 deletion_handlers_.erase(std::remove_if(
486 deletion_handlers_.begin(), deletion_handlers_.end(), 485 deletion_handlers_.begin(), deletion_handlers_.end(),
487 [handler](const scoped_ptr<SuggestionDeletionHandler>& elem) { 486 [handler](const scoped_ptr<SuggestionDeletionHandler>& elem) {
488 return elem.get() == handler; 487 return elem.get() == handler;
489 })); 488 }));
490 } 489 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/autocomplete_result_unittest.cc ('k') | components/omnibox/browser/bookmark_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698