[Android] Profile#getLastUsedProfile -> getLastUsedRegularProfile.

Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/313fe0e50ccb8827629ead146db4693f3df99d05

commit 313fe0e50ccb8827629ead146db4693f3df99d05
Author: Side Yilmaz <sideyilmaz@chromium.org>
Date:   Tue Jun 2 15:45:23 2020 +0000

    Remove deprecated |Profile#getLastUsedProfile| function.

    This CL removes |getLastUsedProfile| function from Profile.java, since
    all usages of the function is removed on Android code. In addition to
    that, it corrects the comment on RevampedContextMenuCoordinatorTest
    class.

    Bug: 1041781
This commit is contained in:
Max Karolinskiy
2020-08-06 17:32:22 -04:00
committed by mkarolin
parent 00146cfdcd
commit 763e0c17e8
@@ -276,7 +276,7 @@ public abstract class BraveToolbarLayout extends ToolbarLayout implements OnClic
mBraveShieldsHandler.updateHost(url);
updateBraveShieldsButtonState(tab);
Profile mProfile = Profile.getLastUsedProfile();
Profile mProfile = Profile.getLastUsedRegularProfile();
long trackersBlockedCount = BravePrefServiceBridge.getInstance().getTrackersBlockedCount(mProfile);
long adsBlockedCount = BravePrefServiceBridge.getInstance().getAdsBlockedCount(mProfile);
long dataSaved = BravePrefServiceBridge.getInstance().getDataSaved(mProfile);