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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java

Issue 11360207: Add Java resources to content and chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove obsolete findbugs warnings Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java b/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
index 665b401bbeeb0128f276a4ee527c66c7214f975e..b5f67ead74e6cd461c219ac084af5c0ffd9fddf5 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java
@@ -33,8 +33,8 @@ import java.lang.ref.WeakReference;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
-import org.chromium.content.app.AppResource;
import org.chromium.content.common.ISandboxedProcessService;
+import org.chromium.content.R;
@JNINamespace("content")
public class ContentVideoView extends FrameLayout implements MediaPlayerControl,
@@ -201,12 +201,12 @@ public class ContentVideoView extends FrameLayout implements MediaPlayerControl,
if (mPlaybackErrorText != null) return;
mPlaybackErrorText = context.getString(
- AppResource.STRING_MEDIA_PLAYER_MESSAGE_PLAYBACK_ERROR);
+ R.string.media_player_error_text_invalid_progressive_playback);
mUnknownErrorText = context.getString(
- AppResource.STRING_MEDIA_PLAYER_MESSAGE_UNKNOWN_ERROR);
- mErrorButton = context.getString(AppResource.STRING_MEDIA_PLAYER_ERROR_BUTTON);
- mErrorTitle = context.getString(AppResource.STRING_MEDIA_PLAYER_ERROR_TITLE);
- mVideoLoadingText = context.getString(AppResource.STRING_MEDIA_PLAYER_LOADING_VIDEO);
+ R.string.media_player_error_text_unknown);
+ mErrorButton = context.getString(R.string.media_player_error_button);
+ mErrorTitle = context.getString(R.string.media_player_error_title);
+ mVideoLoadingText = context.getString(R.string.media_player_loading_video);
}
void showContentVideoView() {

Powered by Google App Engine
This is Rietveld 408576698