summaryrefslogtreecommitdiffstats
path: root/content/browser/android/download_controller.cc
diff options
context:
space:
mode:
authorpliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-13 13:35:05 +0000
committerpliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-13 13:35:05 +0000
commitd272c4c5a4b28fc92798fe13cdf398fd6a9050ab (patch)
tree839da72e2ff069a52cd0252ee9e28198904085e8 /content/browser/android/download_controller.cc
parent267be9fbc2dc337e37bc15baa6b3bedda4239e14 (diff)
downloadchromium_src-d272c4c5a4b28fc92798fe13cdf398fd6a9050ab.zip
chromium_src-d272c4c5a4b28fc92798fe13cdf398fd6a9050ab.tar.gz
chromium_src-d272c4c5a4b28fc92798fe13cdf398fd6a9050ab.tar.bz2
Annotate some Java classes with @JNINamespace("content").
This lets us make the JNI free functions part of the content namespace (while keeping them 'static'). Review URL: https://chromiumcodereview.appspot.com/10696049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/android/download_controller.cc')
-rw-r--r--content/browser/android/download_controller.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/content/browser/android/download_controller.cc b/content/browser/android/download_controller.cc
index ca6b90a..16e370a 100644
--- a/content/browser/android/download_controller.cc
+++ b/content/browser/android/download_controller.cc
@@ -31,18 +31,18 @@ using base::android::ConvertUTF8ToJavaString;
using base::android::GetClass;
using base::android::ScopedJavaLocalRef;
-// JNI methods
-static void Init(JNIEnv* env, jobject obj) {
- content::DownloadController::GetInstance()->Init(env, obj);
-}
-
namespace {
-const char* kDownloadControllerClassPathName =
+const char kDownloadControllerClassPathName[] =
"org/chromium/content/browser/DownloadController";
} // namespace
namespace content {
+// JNI methods
+static void Init(JNIEnv* env, jobject obj) {
+ DownloadController::GetInstance()->Init(env, obj);
+}
+
struct DownloadController::JavaObject {
ScopedJavaLocalRef<jobject> Controller(JNIEnv* env) {
return GetRealObject(env, obj);