Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the ClassCastException on opening ClearSyncDataPreferences.
When opening from ClearSyncDataPreferences, the getActivity() call was casted to Preferences, which was 1.) too specific - this code can be reached from at least three different places, two of which (bookmarks menu, recent tabs menu) are not Preferences; the main entry point is through the privacy settings, which is a Preferences activity, which is why this wasn't discovered immediately 2.) not even needed - PreferencesLauncher.createIntentForSettingsPage accepts any Context as an argument, so getActivity() doesn't need to be casted at all BUG=585714 Review URL: https://codereview.chromium.org/1701753002 Cr-Commit-Position: refs/heads/master@{#375480}
- Loading branch information