OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |