refactor: remove unused web contents preferences methods (#42970)
* chore: remove unused WebContentsPreferences::ShouldDisableDialogs() Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused WebContentsPreferences::ShouldUseSafeDialogs() caller removed in85bc005c
Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: remove unused WebContentsPreferences::GetSafeDialogsMessage() caller removed in85bc005c
Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: WebContentsPreferences::GetPreloadPath() now returns a std::optional<base::FilePath> Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: make WebContentsPreferences::last_preference() const Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
860f09beab
commit
d8949a4d04
3 changed files with 4 additions and 25 deletions
|
@ -3619,9 +3619,8 @@ std::vector<base::FilePath> WebContents::GetPreloadPaths() const {
|
|||
auto result = SessionPreferences::GetValidPreloads(GetBrowserContext());
|
||||
|
||||
if (auto* web_preferences = WebContentsPreferences::From(web_contents())) {
|
||||
base::FilePath preload;
|
||||
if (web_preferences->GetPreloadPath(&preload)) {
|
||||
result.emplace_back(preload);
|
||||
if (auto preload = web_preferences->GetPreloadPath()) {
|
||||
result.emplace_back(*preload);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue