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

Side by Side Diff: chrome/browser/ui/webui/options/home_page_overlay_handler.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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/ui/webui/options/home_page_overlay_handler.h" 5 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/autocomplete/autocomplete_classifier.h" 10 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
11 #include "chrome/browser/autocomplete/autocomplete_controller.h" 11 #include "chrome/browser/autocomplete/autocomplete_controller.h"
12 #include "chrome/browser/autocomplete/autocomplete_result.h" 12 #include "chrome/browser/autocomplete/autocomplete_result.h"
13 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" 13 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/search_engines/template_url_service_factory.h" 15 #include "chrome/browser/search_engines/template_url_service_factory.h"
16 #include "components/metrics/proto/omnibox_event.pb.h" 16 #include "components/metrics/proto/omnibox_event.pb.h"
17 #include "components/omnibox/autocomplete_input.h" 17 #include "components/omnibox/autocomplete_input.h"
18 #include "content/public/browser/web_ui.h" 18 #include "content/public/browser/web_ui.h"
19 #include "grit/generated_resources.h" 19 #include "grit/generated_resources.h"
20 #include "ui/base/l10n/l10n_util.h"
21 20
22 namespace options { 21 namespace options {
23 22
24 HomePageOverlayHandler::HomePageOverlayHandler() { 23 HomePageOverlayHandler::HomePageOverlayHandler() {
25 } 24 }
26 25
27 HomePageOverlayHandler::~HomePageOverlayHandler() { 26 HomePageOverlayHandler::~HomePageOverlayHandler() {
28 } 27 }
29 28
30 void HomePageOverlayHandler::RegisterMessages() { 29 void HomePageOverlayHandler::RegisterMessages() {
(...skipping 30 matching lines...) Expand all
61 60
62 void HomePageOverlayHandler::OnResultChanged(bool default_match_changed) { 61 void HomePageOverlayHandler::OnResultChanged(bool default_match_changed) {
63 const AutocompleteResult& result = autocomplete_controller_->result(); 62 const AutocompleteResult& result = autocomplete_controller_->result();
64 base::ListValue suggestions; 63 base::ListValue suggestions;
65 OptionsUI::ProcessAutocompleteSuggestions(result, &suggestions); 64 OptionsUI::ProcessAutocompleteSuggestions(result, &suggestions);
66 web_ui()->CallJavascriptFunction( 65 web_ui()->CallJavascriptFunction(
67 "HomePageOverlay.updateAutocompleteSuggestions", suggestions); 66 "HomePageOverlay.updateAutocompleteSuggestions", suggestions);
68 } 67 }
69 68
70 } // namespace options 69 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/handler_options_handler.cc ('k') | chrome/browser/ui/webui/options/import_data_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698