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

Side by Side Diff: content/browser/media/android/media_resource_getter_impl.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "content/browser/media/android/media_resource_getter_impl.h" 5 #include "content/browser/media/android/media_resource_getter_impl.h"
6 6
7 #include "base/android/context_utils.h" 7 #include "base/android/context_utils.h"
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 const int64_t offset, 374 const int64_t offset,
375 const int64_t size, 375 const int64_t size,
376 const ExtractMediaMetadataCB& callback) { 376 const ExtractMediaMetadataCB& callback) {
377 DCHECK_CURRENTLY_ON(BrowserThread::UI); 377 DCHECK_CURRENTLY_ON(BrowserThread::UI);
378 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); 378 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool();
379 pool->PostWorkerTask( 379 pool->PostWorkerTask(
380 FROM_HERE, 380 FROM_HERE,
381 base::Bind(&GetMediaMetadataFromFd, fd, offset, size, callback)); 381 base::Bind(&GetMediaMetadataFromFd, fd, offset, size, callback));
382 } 382 }
383 383
384 // static
385 bool MediaResourceGetterImpl::RegisterMediaResourceGetter(JNIEnv* env) {
386 return RegisterNativesImpl(env);
387 }
388
389 } // namespace content 384 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698