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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.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/InputDialogContainer.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java b/content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java
index 58ff8dba74958df1d2dde2ecdde994434c45bcb2..389b4fd9adb75e30af47ebdd2fa92f0da95e4d03 100644
--- a/content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java
+++ b/content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java
@@ -18,9 +18,9 @@ import android.text.format.Time;
import android.widget.DatePicker;
import android.widget.TimePicker;
-import org.chromium.content.app.AppResource;
import org.chromium.content.browser.DateTimePickerDialog.OnDateTimeSetListener;
import org.chromium.content.browser.MonthPickerDialog.OnMonthSetListener;
+import org.chromium.content.R;
import java.text.ParseException;
import java.text.SimpleDateFormat;
@@ -109,11 +109,8 @@ class InputDialogContainer {
time.year, time.month);
}
- assert AppResource.STRING_DATE_PICKER_DIALOG_SET != 0;
- assert AppResource.STRING_DATE_PICKER_DIALOG_CLEAR != 0;
-
mDialog.setButton(DialogInterface.BUTTON_POSITIVE,
- mContext.getText(AppResource.STRING_DATE_PICKER_DIALOG_SET),
+ mContext.getText(R.string.date_picker_dialog_set),
(DialogInterface.OnClickListener) mDialog);
mDialog.setButton(DialogInterface.BUTTON_NEGATIVE,
@@ -126,7 +123,7 @@ class InputDialogContainer {
});
mDialog.setButton(DialogInterface.BUTTON_NEUTRAL,
- mContext.getText(AppResource.STRING_DATE_PICKER_DIALOG_CLEAR),
+ mContext.getText(R.string.date_picker_dialog_clear),
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {

Powered by Google App Engine
This is Rietveld 408576698