Skip to content

Commit

Permalink
Merge pull request #3673 from brave/fix_private_window_translate_dont…
Browse files Browse the repository at this point in the history
…_ask_again

Don't ask again in private window's translate bubble should modify or…
  • Loading branch information
yrliou authored Oct 11, 2019
2 parents 8872d26 + 4a60ead commit 7d7f4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/ui/views/translate/brave_translate_bubble_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void BraveTranslateBubbleView::DisableOfferTranslatePref() {

Profile* profile =
Profile::FromBrowserContext(web_contents()->GetBrowserContext());
PrefService* const prefs = profile->GetPrefs();
PrefService* const prefs = profile->GetOriginalProfile()->GetPrefs();
DCHECK(prefs);

prefs->SetBoolean(prefs::kOfferTranslateEnabled, false);
Expand Down

0 comments on commit 7d7f4dc

Please sign in to comment.