Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/StringHelper.java

Issue 30018598: Issue 7281 - Remove Google+ links (Closed)
Patch Set: Adjustments in regards to Anton's comments Created Feb. 27, 2019, 5 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mobile/android/base/strings.xml.in ('k') | mobile/locales/en-US/chrome/region.properties » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*- 1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public 2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 5
6 package org.mozilla.gecko.tests; 6 package org.mozilla.gecko.tests;
7 7
8 import android.content.res.Resources; 8 import android.content.res.Resources;
9 9
10 import org.mozilla.gecko.R; 10 import org.mozilla.gecko.R;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 private StringHelper(final Resources res) { 242 private StringHelper(final Resources res) {
243 243
244 OK = res.getString(R.string.button_ok); 244 OK = res.getString(R.string.button_ok);
245 CANCEL = res.getString(R.string.button_cancel); 245 CANCEL = res.getString(R.string.button_cancel);
246 CLEAR = res.getString(R.string.button_clear); 246 CLEAR = res.getString(R.string.button_clear);
247 247
248 // Note: DEFAULT_BOOKMARKS_TITLES.length == DEFAULT_BOOKMARKS_URLS.lengt h 248 // Note: DEFAULT_BOOKMARKS_TITLES.length == DEFAULT_BOOKMARKS_URLS.lengt h
249 DEFAULT_BOOKMARKS_TITLES = new String[] { 249 DEFAULT_BOOKMARKS_TITLES = new String[] {
250 res.getString(R.string.bookmarkdefaults_title_about_browser), 250 res.getString(R.string.bookmarkdefaults_title_about_browser),
251 res.getString(R.string.bookmarkdefaults_title_adblock_plus), 251 res.getString(R.string.bookmarkdefaults_title_adblock_plus),
252 res.getString(R.string.bookmarkdefaults_title_acceptable_ads), 252 res.getString(R.string.bookmarkdefaults_title_acceptable_ads)
253 res.getString(R.string.bookmarkdefaults_title_beta_community)
254 }; 253 };
255 DEFAULT_BOOKMARKS_URLS = new String[] { 254 DEFAULT_BOOKMARKS_URLS = new String[] {
256 res.getString(R.string.bookmarkdefaults_url_about_browser), 255 res.getString(R.string.bookmarkdefaults_url_about_browser),
257 res.getString(R.string.bookmarkdefaults_url_adblock_plus), 256 res.getString(R.string.bookmarkdefaults_url_adblock_plus),
258 res.getString(R.string.bookmarkdefaults_url_acceptable_ads), 257 res.getString(R.string.bookmarkdefaults_url_acceptable_ads)
259 res.getString(R.string.bookmarkdefaults_url_beta_community)
260 }; 258 };
261 DEFAULT_BOOKMARKS_COUNT = DEFAULT_BOOKMARKS_TITLES.length; 259 DEFAULT_BOOKMARKS_COUNT = DEFAULT_BOOKMARKS_TITLES.length;
262 260
263 // About pages 261 // About pages
264 ABOUT_FIREFOX_URL = res.getString(R.string.bookmarkdefaults_url_about_br owser); 262 ABOUT_FIREFOX_URL = res.getString(R.string.bookmarkdefaults_url_about_br owser);
265 263
266 // Context Menu item strings 264 // Context Menu item strings
267 CONTEXT_MENU_OPEN_IN_NEW_TAB = res.getString(R.string.contextmenu_open_n ew_tab); 265 CONTEXT_MENU_OPEN_IN_NEW_TAB = res.getString(R.string.contextmenu_open_n ew_tab);
268 CONTEXT_MENU_OPEN_IN_PRIVATE_TAB = res.getString(R.string.contextmenu_op en_private_tab); 266 CONTEXT_MENU_OPEN_IN_PRIVATE_TAB = res.getString(R.string.contextmenu_op en_private_tab);
269 CONTEXT_MENU_EDIT = res.getString(R.string.contextmenu_top_sites_edit); 267 CONTEXT_MENU_EDIT = res.getString(R.string.contextmenu_top_sites_edit);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 * @param javascriptUrl to load. 444 * @param javascriptUrl to load.
447 * @return URL with harness wrapper. 445 * @return URL with harness wrapper.
448 */ 446 */
449 public String getHarnessUrlForJavascript(String javascriptUrl) { 447 public String getHarnessUrlForJavascript(String javascriptUrl) {
450 // We include a slug to make sure we never cache the harness. 448 // We include a slug to make sure we never cache the harness.
451 return ROBOCOP_JS_HARNESS_URL + 449 return ROBOCOP_JS_HARNESS_URL +
452 "?slug=" + System.currentTimeMillis() + 450 "?slug=" + System.currentTimeMillis() +
453 "&path=" + javascriptUrl; 451 "&path=" + javascriptUrl;
454 } 452 }
455 } 453 }
OLDNEW
« no previous file with comments | « mobile/android/base/strings.xml.in ('k') | mobile/locales/en-US/chrome/region.properties » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld