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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/resources/StaticResourcePreloads.java

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 package org.chromium.chrome.browser.compositor.resources; 5 package org.chromium.chrome.browser.compositor.resources;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 8
9 import org.chromium.base.annotations.SuppressFBWarnings; 9 import org.chromium.base.annotations.SuppressFBWarnings;
10 import org.chromium.chrome.R; 10 import org.chromium.chrome.R;
(...skipping 13 matching lines...) Expand all
24 R.drawable.btn_tabstrip_new_tab_pressed, R.drawable.spinner, R.drawa ble.spinner_white, 24 R.drawable.btn_tabstrip_new_tab_pressed, R.drawable.spinner, R.drawa ble.spinner_white,
25 }; 25 };
26 26
27 /** A list of resources to load asynchronously once the compositor is initia lized. */ 27 /** A list of resources to load asynchronously once the compositor is initia lized. */
28 private static int[] sAsynchronousResources = new int[] { 28 private static int[] sAsynchronousResources = new int[] {
29 R.drawable.btn_tabstrip_switch_normal, R.drawable.btn_tabstrip_switch_in cognito}; 29 R.drawable.btn_tabstrip_switch_normal, R.drawable.btn_tabstrip_switch_in cognito};
30 30
31 private static int[] sEmptyList = new int[] {}; 31 private static int[] sEmptyList = new int[] {};
32 32
33 public static int[] getSynchronousResources(Context context) { 33 public static int[] getSynchronousResources(Context context) {
34 return DeviceFormFactor.isTablet(context) ? sSynchronousResources : sEmp tyList; 34 return DeviceFormFactor.isTablet() ? sSynchronousResources : sEmptyList;
35 } 35 }
36 36
37 @SuppressFBWarnings("MS_EXPOSE_REP") 37 @SuppressFBWarnings("MS_EXPOSE_REP")
38 public static int[] getAsynchronousResources(Context context) { 38 public static int[] getAsynchronousResources(Context context) {
39 return DeviceFormFactor.isTablet(context) ? sAsynchronousResources : sEm ptyList; 39 return DeviceFormFactor.isTablet() ? sAsynchronousResources : sEmptyList ;
40 } 40 }
41 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698