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
|
@ -258,14 +258,6 @@ void WebContentsPreferences::SetFromDictionary(
|
|||
SaveLastPreferences();
|
||||
}
|
||||
|
||||
bool WebContentsPreferences::GetSafeDialogsMessage(std::string* message) const {
|
||||
if (safe_dialogs_message_) {
|
||||
*message = *safe_dialogs_message_;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool WebContentsPreferences::SetImageAnimationPolicy(std::string policy) {
|
||||
if (policy == "animate") {
|
||||
image_animation_policy_ =
|
||||
|
@ -283,15 +275,6 @@ bool WebContentsPreferences::SetImageAnimationPolicy(std::string policy) {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool WebContentsPreferences::GetPreloadPath(base::FilePath* path) const {
|
||||
DCHECK(path);
|
||||
if (preload_path_) {
|
||||
*path = *preload_path_;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool WebContentsPreferences::IsSandboxed() const {
|
||||
if (sandbox_)
|
||||
return *sandbox_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue