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

Side by Side Diff: chrome/browser/search_engines/template_url_service_android.cc

Issue 18644007: Update some includes of chrome_notification_types.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 7 years, 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/search_engines/template_url_service_android.h" 5 #include "chrome/browser/search_engines/template_url_service_android.h"
6 6
7 #include "base/android/jni_string.h" 7 #include "base/android/jni_string.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
13 #include "chrome/browser/search_engines/template_url.h" 14 #include "chrome/browser/search_engines/template_url.h"
14 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" 15 #include "chrome/browser/search_engines/template_url_prepopulate_data.h"
15 #include "chrome/browser/search_engines/template_url_service.h" 16 #include "chrome/browser/search_engines/template_url_service.h"
16 #include "chrome/browser/search_engines/template_url_service_factory.h" 17 #include "chrome/browser/search_engines/template_url_service_factory.h"
17 #include "chrome/common/chrome_notification_types.h"
18 #include "content/public/browser/notification_source.h" 18 #include "content/public/browser/notification_source.h"
19 #include "jni/TemplateUrlService_jni.h" 19 #include "jni/TemplateUrlService_jni.h"
20 20
21 using base::android::ConvertUTF16ToJavaString; 21 using base::android::ConvertUTF16ToJavaString;
22 22
23 namespace { 23 namespace {
24 24
25 Profile* GetOriginalProfile() { 25 Profile* GetOriginalProfile() {
26 return g_browser_process->profile_manager()->GetDefaultProfile()-> 26 return g_browser_process->profile_manager()->GetDefaultProfile()->
27 GetOriginalProfile(); 27 GetOriginalProfile();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 static jint Init(JNIEnv* env, jobject obj) { 123 static jint Init(JNIEnv* env, jobject obj) {
124 TemplateUrlServiceAndroid* template_url_service_android = 124 TemplateUrlServiceAndroid* template_url_service_android =
125 new TemplateUrlServiceAndroid(env, obj); 125 new TemplateUrlServiceAndroid(env, obj);
126 return reinterpret_cast<jint>(template_url_service_android); 126 return reinterpret_cast<jint>(template_url_service_android);
127 } 127 }
128 128
129 // static 129 // static
130 bool TemplateUrlServiceAndroid::Register(JNIEnv* env) { 130 bool TemplateUrlServiceAndroid::Register(JNIEnv* env) {
131 return RegisterNativesImpl(env); 131 return RegisterNativesImpl(env);
132 } 132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698