Skip to content

Commit

Permalink
Merge pull request #111 from brave/startup-pref-2
Browse files Browse the repository at this point in the history
Use default pref for setting preserve profile pref
  • Loading branch information
bbondy authored May 21, 2018
2 parents 63c8daf + 68b54e3 commit bb2a6cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
4 changes: 4 additions & 0 deletions browser/brave_profile_prefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include "brave/browser/brave_profile_prefs.h"

#include "brave/components/brave_shields/browser/brave_shields_web_contents_observer.h"
#include "chrome/browser/prefs/session_startup_pref.h"
#include "chrome/common/pref_names.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/signin/core/browser/signin_pref_names.h"
Expand All @@ -15,6 +17,8 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
brave_shields::BraveShieldsWebContentsObserver::RegisterProfilePrefs(registry);
// Register any default pref overrides here
registry->SetDefaultPrefValue(prefs::kSigninAllowed, base::Value(false));
registry->SetDefaultPrefValue(prefs::kRestoreOnStartup,
base::Value(SessionStartupPref::kPrefValueLast));
}

} // namespace brave
Expand Down
13 changes: 0 additions & 13 deletions patches/chrome-browser-prefs-session_startup_pref.cc.patch

This file was deleted.

0 comments on commit bb2a6cb

Please sign in to comment.