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

Side by Side Diff: chrome/browser/android/webapps/webapp_registry.cc

Issue 1475773002: Add context_utils.h includes where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/webapps/webapp_registry.h" 5 #include "chrome/browser/android/webapps/webapp_registry.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/context_utils.h"
9 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "chrome/browser/io_thread.h" 12 #include "chrome/browser/io_thread.h"
12 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
13 #include "jni/WebappRegistry_jni.h" 14 #include "jni/WebappRegistry_jni.h"
14 15
15 // static 16 // static
16 void WebappRegistry::UnregisterWebapps( 17 void WebappRegistry::UnregisterWebapps(
17 const base::Closure& callback) { 18 const base::Closure& callback) {
18 JNIEnv* env = base::android::AttachCurrentThread(); 19 JNIEnv* env = base::android::AttachCurrentThread();
(...skipping 12 matching lines...) Expand all
31 jlong jcallback) { 32 jlong jcallback) {
32 base::Closure* callback = reinterpret_cast<base::Closure*>(jcallback); 33 base::Closure* callback = reinterpret_cast<base::Closure*>(jcallback);
33 callback->Run(); 34 callback->Run();
34 delete callback; 35 delete callback;
35 } 36 }
36 37
37 // static 38 // static
38 bool WebappRegistry::RegisterWebappRegistry(JNIEnv* env) { 39 bool WebappRegistry::RegisterWebappRegistry(JNIEnv* env) {
39 return RegisterNativesImpl(env); 40 return RegisterNativesImpl(env);
40 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698