chore: remove awkward semi-documented preloadURL WebPreference (#33228)
This commit is contained in:
parent
e904486076
commit
4342b7ff55
11 changed files with 16 additions and 23 deletions
|
@ -258,15 +258,6 @@ void WebContentsPreferences::Merge(
|
|||
} else {
|
||||
LOG(ERROR) << "preload script must have absolute path.";
|
||||
}
|
||||
} else if (web_preferences.Get(options::kPreloadURL, &preload_url_str)) {
|
||||
// Translate to file path if there is "preload-url" option.
|
||||
base::FilePath preload;
|
||||
GURL preload_url(preload_url_str);
|
||||
if (net::FileURLToFilePath(preload_url, &preload)) {
|
||||
preload_path_ = preload;
|
||||
} else {
|
||||
LOG(ERROR) << "preload url must be file:// protocol.";
|
||||
}
|
||||
}
|
||||
|
||||
std::string type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue