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

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

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #include "content/public/browser/web_contents.h" 53 #include "content/public/browser/web_contents.h"
54 #include "content/public/common/url_constants.h" 54 #include "content/public/common/url_constants.h"
55 #include "jni/AutocompleteController_jni.h" 55 #include "jni/AutocompleteController_jni.h"
56 #include "net/base/escape.h" 56 #include "net/base/escape.h"
57 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 57 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
58 58
59 using base::android::AttachCurrentThread; 59 using base::android::AttachCurrentThread;
60 using base::android::ConvertJavaStringToUTF16; 60 using base::android::ConvertJavaStringToUTF16;
61 using base::android::ConvertUTF8ToJavaString; 61 using base::android::ConvertUTF8ToJavaString;
62 using base::android::ConvertUTF16ToJavaString; 62 using base::android::ConvertUTF16ToJavaString;
63 using base::android::JavaParamRef;
63 using base::android::JavaRef; 64 using base::android::JavaRef;
65 using base::android::ScopedJavaLocalRef;
64 using base::android::ToJavaIntArray; 66 using base::android::ToJavaIntArray;
65 using bookmarks::BookmarkModel; 67 using bookmarks::BookmarkModel;
66 using metrics::OmniboxEventProto; 68 using metrics::OmniboxEventProto;
67 69
68 namespace { 70 namespace {
69 71
70 const int kAndroidAutocompleteProviders = 72 const int kAndroidAutocompleteProviders =
71 AutocompleteClassifier::kDefaultOmniboxProviders; 73 AutocompleteClassifier::kDefaultOmniboxProviders;
72 74
73 /** 75 /**
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 return; 632 return;
631 633
632 // ZeroSuggestPrefetcher deletes itself after it's done prefetching. 634 // ZeroSuggestPrefetcher deletes itself after it's done prefetching.
633 new ZeroSuggestPrefetcher(profile); 635 new ZeroSuggestPrefetcher(profile);
634 } 636 }
635 637
636 // Register native methods 638 // Register native methods
637 bool RegisterAutocompleteControllerAndroid(JNIEnv* env) { 639 bool RegisterAutocompleteControllerAndroid(JNIEnv* env) {
638 return RegisterNativesImpl(env); 640 return RegisterNativesImpl(env);
639 } 641 }
OLDNEW
« no previous file with comments | « chrome/browser/android/omnibox/answers_image_bridge.cc ('k') | chrome/browser/android/omnibox/omnibox_prerender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698