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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsManager.java

Issue 2784353002: Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: Fix tests Created 3 years, 8 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.ntp; 5 package org.chromium.chrome.browser.ntp;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.SharedPreferences; 8 import android.content.SharedPreferences;
9 import android.graphics.Bitmap; 9 import android.graphics.Bitmap;
10 10
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 @Override 373 @Override
374 public void run() { 374 public void run() {
375 if (mIsDestroyed) return; 375 if (mIsDestroyed) return;
376 updateForeignSessions(); 376 updateForeignSessions();
377 postUpdate(); 377 postUpdate();
378 } 378 }
379 }); 379 });
380 } 380 }
381 381
382 public boolean isSignedIn() { 382 public boolean isSignedIn() {
383 return ChromeSigninController.get(mContext).isSignedIn(); 383 return ChromeSigninController.get().isSignedIn();
384 } 384 }
385 385
386 @VisibleForTesting 386 @VisibleForTesting
387 public static void setRecentlyClosedTabManagerForTests(RecentlyClosedTabMana ger manager) { 387 public static void setRecentlyClosedTabManagerForTests(RecentlyClosedTabMana ger manager) {
388 sRecentlyClosedTabManagerForTests = manager; 388 sRecentlyClosedTabManagerForTests = manager;
389 } 389 }
390 } 390 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698