Commit 3ecd6996 authored by Side Yilmaz's avatar Side Yilmaz Committed by Commit Bot

Replace deprecated getLastUsedProfile function in NewTabPageView.

Profile#getLastUsedProfile| is deprecated and replaced with
|Profile#getLastUsedRegularProfile|. This CL updates NewTabPageView
class.

Note: This change is only code clean-up, does not change any behaviour.

Bug: 1041781
Change-Id: Ib6b7ddc3bed423047c3946445645aba82eeaeab0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2085372Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Side YILMAZ <sideyilmaz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751270}
parent 8e2e777e
......@@ -183,7 +183,7 @@ public class NewTabPageView extends FrameLayout {
}
});
Profile profile = Profile.getLastUsedProfile();
Profile profile = Profile.getLastUsedRegularProfile();
OfflinePageBridge offlinePageBridge =
SuggestionsDependencyFactory.getInstance().getOfflinePageBridge(profile);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment