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

Issue 12625005: remove call to get android MediaPlayer class (Closed)

Created:
7 years, 9 months ago by qinmin
Modified:
7 years, 9 months ago
Reviewers:
bulach, Yaron, sky
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

remove call to get android MediaPlayer class use the global class variable defined in MediaPlayer_jni.h Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188293

Patch Set 1 #

Total comments: 1

Patch Set 2 : removing unneeded local javarefs elsewhere #

Total comments: 4

Patch Set 3 : moving getMetadata() call to java side #

Total comments: 8

Patch Set 4 : addressing comments #

Patch Set 5 : remove useless . line #

Total comments: 10

Patch Set 6 : addressing comments #

Total comments: 8

Patch Set 7 : fixing nits #

Patch Set 8 : fix findbug warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -90 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java View 1 2 3 4 5 6 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/history/android/sqlite_cursor.cc View 1 2 3 4 5 6 5 chunks +4 lines, -36 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaPlayerBridge.java View 1 2 3 4 5 6 7 2 chunks +74 lines, -0 lines 0 comments Download
M media/base/android/media_player_bridge.cc View 1 2 3 4 5 6 13 chunks +21 lines, -53 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
qinmin
PTAL
7 years, 9 months ago (2013-03-11 19:32:09 UTC) #1
Yaron
https://codereview.chromium.org/12625005/diff/1/media/base/android/media_player_bridge.cc File media/base/android/media_player_bridge.cc (left): https://codereview.chromium.org/12625005/diff/1/media/base/android/media_player_bridge.cc#oldcode332 media/base/android/media_player_bridge.cc:332: GetClass(env, "android/media/MediaPlayer")); Sorry to do this to you, but ...
7 years, 9 months ago (2013-03-11 19:58:40 UTC) #2
qinmin
sure, will do that in this change On 2013/03/11 19:58:40, Yaron wrote: > https://codereview.chromium.org/12625005/diff/1/media/base/android/media_player_bridge.cc > ...
7 years, 9 months ago (2013-03-11 20:20:58 UTC) #3
qinmin
ok, remove all the other local references that I can find. There is also an ...
7 years, 9 months ago (2013-03-11 22:54:31 UTC) #4
Yaron
https://codereview.chromium.org/12625005/diff/5001/media/base/android/media_player_bridge.cc File media/base/android/media_player_bridge.cc (right): https://codereview.chromium.org/12625005/diff/5001/media/base/android/media_player_bridge.cc#newcode332 media/base/android/media_player_bridge.cc:332: env, g_MediaPlayer_clazz, "getMetadata", That's not the change I was ...
7 years, 9 months ago (2013-03-11 23:13:04 UTC) #5
qinmin
https://codereview.chromium.org/12625005/diff/5001/media/base/android/media_player_bridge.cc File media/base/android/media_player_bridge.cc (right): https://codereview.chromium.org/12625005/diff/5001/media/base/android/media_player_bridge.cc#newcode332 media/base/android/media_player_bridge.cc:332: env, g_MediaPlayer_clazz, "getMetadata", There is some problem with the ...
7 years, 9 months ago (2013-03-12 16:36:24 UTC) #6
Yaron
https://codereview.chromium.org/12625005/diff/5001/media/base/android/media_player_bridge.cc File media/base/android/media_player_bridge.cc (right): https://codereview.chromium.org/12625005/diff/5001/media/base/android/media_player_bridge.cc#newcode332 media/base/android/media_player_bridge.cc:332: env, g_MediaPlayer_clazz, "getMetadata", On 2013/03/12 16:36:24, qinmin wrote: > ...
7 years, 9 months ago (2013-03-12 16:50:24 UTC) #7
qinmin
https://codereview.chromium.org/12625005/diff/5001/media/base/android/media_player_bridge.cc File media/base/android/media_player_bridge.cc (right): https://codereview.chromium.org/12625005/diff/5001/media/base/android/media_player_bridge.cc#newcode332 media/base/android/media_player_bridge.cc:332: env, g_MediaPlayer_clazz, "getMetadata", Ok, moved the everything to java ...
7 years, 9 months ago (2013-03-12 19:22:05 UTC) #8
Yaron
https://codereview.chromium.org/12625005/diff/11001/content/browser/android/download_controller_android_impl.cc File content/browser/android/download_controller_android_impl.cc (left): https://codereview.chromium.org/12625005/diff/11001/content/browser/android/download_controller_android_impl.cc#oldcode38 content/browser/android/download_controller_android_impl.cc:38: const char kDownloadControllerClassPathName[] = You can revert this. I've ...
7 years, 9 months ago (2013-03-12 21:51:54 UTC) #9
qinmin
https://codereview.chromium.org/12625005/diff/11001/content/browser/android/download_controller_android_impl.cc File content/browser/android/download_controller_android_impl.cc (left): https://codereview.chromium.org/12625005/diff/11001/content/browser/android/download_controller_android_impl.cc#oldcode38 content/browser/android/download_controller_android_impl.cc:38: const char kDownloadControllerClassPathName[] = On 2013/03/12 21:51:54, Yaron wrote: ...
7 years, 9 months ago (2013-03-12 22:27:32 UTC) #10
Yaron
lgtm but please wait for bulach I wish there was a better way to get ...
7 years, 9 months ago (2013-03-13 01:47:54 UTC) #11
qinmin
On 2013/03/13 01:47:54, Yaron wrote: > lgtm but please wait for bulach > > I ...
7 years, 9 months ago (2013-03-13 02:06:29 UTC) #12
bulach
lgtm, thanks Min! some other suggestions and echoing Yaron's suggestions on using an internal class... ...
7 years, 9 months ago (2013-03-13 15:06:10 UTC) #13
qinmin
https://codereview.chromium.org/12625005/diff/20001/chrome/browser/history/android/sqlite_cursor.cc File chrome/browser/history/android/sqlite_cursor.cc (right): https://codereview.chromium.org/12625005/diff/20001/chrome/browser/history/android/sqlite_cursor.cc#newcode64 chrome/browser/history/android/sqlite_cursor.cc:64: env, g_SQLiteCursor_clazz, "<init>", "(I)V"); On 2013/03/13 15:06:10, bulach wrote: ...
7 years, 9 months ago (2013-03-13 18:26:58 UTC) #14
qinmin
+sky for OWNERS in chrome/browser/history
7 years, 9 months ago (2013-03-13 18:29:32 UTC) #15
sky
lgtm
7 years, 9 months ago (2013-03-13 20:53:27 UTC) #16
Yaron
just a nit. Please also update CL description with SQLCursor reference https://codereview.chromium.org/12625005/diff/28001/chrome/browser/history/android/sqlite_cursor.cc File chrome/browser/history/android/sqlite_cursor.cc (right): ...
7 years, 9 months ago (2013-03-13 22:17:51 UTC) #17
bulach
lgtm, it looks so much nicer!!! thanks a ton Min! just one question and a ...
7 years, 9 months ago (2013-03-14 09:59:07 UTC) #18
qinmin
https://codereview.chromium.org/12625005/diff/28001/chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java File chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java (right): https://codereview.chromium.org/12625005/diff/28001/chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java#newcode36 chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java:36: SQLiteCursor(int nativeSQLiteCursor) { On 2013/03/14 09:59:07, bulach wrote: > ...
7 years, 9 months ago (2013-03-14 18:53:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/12625005/38001
7 years, 9 months ago (2013-03-14 19:44:51 UTC) #20
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=44563
7 years, 9 months ago (2013-03-14 20:51:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/12625005/54001
7 years, 9 months ago (2013-03-14 21:52:48 UTC) #22
commit-bot: I haz the power
7 years, 9 months ago (2013-03-15 07:50:13 UTC) #23
Message was sent while issue was closed.
Change committed as 188293

Powered by Google App Engine
This is Rietveld 408576698