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

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

Issue 489353004: Componentize SearchProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « components/omnibox/base_search_provider.h ('k') | components/omnibox/search_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/autocomplete/base_search_provider.h" 5 #include "components/omnibox/base_search_provider.h"
6 6
7 #include "base/i18n/case_conversion.h" 7 #include "base/i18n/case_conversion.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/metrics/proto/omnibox_event.pb.h" 10 #include "components/metrics/proto/omnibox_event.pb.h"
11 #include "components/metrics/proto/omnibox_input_type.pb.h" 11 #include "components/metrics/proto/omnibox_input_type.pb.h"
12 #include "components/omnibox/autocomplete_provider_delegate.h" 12 #include "components/omnibox/autocomplete_provider_delegate.h"
13 #include "components/omnibox/autocomplete_provider_listener.h" 13 #include "components/omnibox/autocomplete_provider_listener.h"
14 #include "components/omnibox/omnibox_field_trial.h" 14 #include "components/omnibox/omnibox_field_trial.h"
15 #include "components/search_engines/template_url.h" 15 #include "components/search_engines/template_url.h"
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 } 454 }
455 455
456 void BaseSearchProvider::OnDeletionComplete( 456 void BaseSearchProvider::OnDeletionComplete(
457 bool success, SuggestionDeletionHandler* handler) { 457 bool success, SuggestionDeletionHandler* handler) {
458 RecordDeletionResult(success); 458 RecordDeletionResult(success);
459 SuggestionDeletionHandlers::iterator it = std::find( 459 SuggestionDeletionHandlers::iterator it = std::find(
460 deletion_handlers_.begin(), deletion_handlers_.end(), handler); 460 deletion_handlers_.begin(), deletion_handlers_.end(), handler);
461 DCHECK(it != deletion_handlers_.end()); 461 DCHECK(it != deletion_handlers_.end());
462 deletion_handlers_.erase(it); 462 deletion_handlers_.erase(it);
463 } 463 }
OLDNEW
« no previous file with comments | « components/omnibox/base_search_provider.h ('k') | components/omnibox/search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698