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

Side by Side Diff: chrome/browser/android/omnibox/autocomplete_controller_android.cc

Issue 447183003: Move OmniboxFieldTrial to components (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & fix switch indent 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/autocomplete/autocomplete_controller.cc » ('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/android/omnibox/autocomplete_controller_android.h" 5 #include "chrome/browser/android/omnibox/autocomplete_controller_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
14 #include "chrome/browser/autocomplete/autocomplete_classifier.h" 14 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
15 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" 15 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h"
16 #include "chrome/browser/autocomplete/autocomplete_controller.h" 16 #include "chrome/browser/autocomplete/autocomplete_controller.h"
17 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" 17 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
18 #include "chrome/browser/autocomplete/search_provider.h" 18 #include "chrome/browser/autocomplete/search_provider.h"
19 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" 19 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h"
20 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 20 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
21 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
22 #include "chrome/browser/chrome_notification_types.h" 22 #include "chrome/browser/chrome_notification_types.h"
23 #include "chrome/browser/omnibox/omnibox_field_trial.h"
24 #include "chrome/browser/omnibox/omnibox_log.h" 23 #include "chrome/browser/omnibox/omnibox_log.h"
25 #include "chrome/browser/profiles/incognito_helpers.h" 24 #include "chrome/browser/profiles/incognito_helpers.h"
26 #include "chrome/browser/profiles/profile_android.h" 25 #include "chrome/browser/profiles/profile_android.h"
27 #include "chrome/browser/profiles/profile_manager.h" 26 #include "chrome/browser/profiles/profile_manager.h"
28 #include "chrome/browser/search/search.h" 27 #include "chrome/browser/search/search.h"
29 #include "chrome/browser/search_engines/template_url_service_factory.h" 28 #include "chrome/browser/search_engines/template_url_service_factory.h"
30 #include "chrome/browser/sessions/session_id.h" 29 #include "chrome/browser/sessions/session_id.h"
31 #include "chrome/browser/ui/search/instant_search_prerenderer.h" 30 #include "chrome/browser/ui/search/instant_search_prerenderer.h"
32 #include "chrome/browser/ui/toolbar/toolbar_model.h" 31 #include "chrome/browser/ui/toolbar/toolbar_model.h"
33 #include "chrome/common/instant_types.h" 32 #include "chrome/common/instant_types.h"
34 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
35 #include "chrome/common/url_constants.h" 34 #include "chrome/common/url_constants.h"
36 #include "components/bookmarks/browser/bookmark_model.h" 35 #include "components/bookmarks/browser/bookmark_model.h"
37 #include "components/keyed_service/content/browser_context_dependency_manager.h" 36 #include "components/keyed_service/content/browser_context_dependency_manager.h"
38 #include "components/metrics/proto/omnibox_event.pb.h" 37 #include "components/metrics/proto/omnibox_event.pb.h"
39 #include "components/omnibox/autocomplete_input.h" 38 #include "components/omnibox/autocomplete_input.h"
40 #include "components/omnibox/autocomplete_match.h" 39 #include "components/omnibox/autocomplete_match.h"
41 #include "components/omnibox/autocomplete_match_type.h" 40 #include "components/omnibox/autocomplete_match_type.h"
41 #include "components/omnibox/omnibox_field_trial.h"
42 #include "components/search/search.h" 42 #include "components/search/search.h"
43 #include "components/search_engines/template_url_service.h" 43 #include "components/search_engines/template_url_service.h"
44 #include "content/public/browser/notification_details.h" 44 #include "content/public/browser/notification_details.h"
45 #include "content/public/browser/notification_service.h" 45 #include "content/public/browser/notification_service.h"
46 #include "content/public/browser/notification_source.h" 46 #include "content/public/browser/notification_source.h"
47 #include "content/public/browser/web_contents.h" 47 #include "content/public/browser/web_contents.h"
48 #include "content/public/common/url_constants.h" 48 #include "content/public/common/url_constants.h"
49 #include "jni/AutocompleteController_jni.h" 49 #include "jni/AutocompleteController_jni.h"
50 #include "net/base/escape.h" 50 #include "net/base/escape.h"
51 #include "net/base/net_util.h" 51 #include "net/base/net_util.h"
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 return; 553 return;
554 554
555 // ZeroSuggestPrefetcher deletes itself after it's done prefetching. 555 // ZeroSuggestPrefetcher deletes itself after it's done prefetching.
556 new ZeroSuggestPrefetcher(profile); 556 new ZeroSuggestPrefetcher(profile);
557 } 557 }
558 558
559 // Register native methods 559 // Register native methods
560 bool RegisterAutocompleteControllerAndroid(JNIEnv* env) { 560 bool RegisterAutocompleteControllerAndroid(JNIEnv* env) {
561 return RegisterNativesImpl(env); 561 return RegisterNativesImpl(env);
562 } 562 }
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/autocomplete/autocomplete_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698