chore: bump chromium to 107.0.5286.0 (main) (#35590)
* chore: bump chromium in DEPS to 107.0.5286.0 * 3866335: media: Rename KeySystemProperties to KeySystemInfo - file renaming3866335
* 3864686: [PA] Introduce *Scan buildflag3864686
* chore: fixup patch indices * 3849359: Remove unused PrefValueStore::Delegate3849359
* 3873005: [CodeHealth] Modernising extensions Tab utils3873005
* 3846595: Auto-select PipeWire target once selection is made3846595
* 3826169: [json-schema-compiler] Support abs::optional<bool>3826169
* fixup! Remove unused PrefValueStore::Delegate Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
parent
a0dbae72c8
commit
b0036ea43a
62 changed files with 164 additions and 265 deletions
|
@ -40,21 +40,20 @@ ElectronMessagingDelegate::IsNativeMessagingHostAllowed(
|
|||
return PolicyPermission::DISALLOW;
|
||||
}
|
||||
|
||||
std::unique_ptr<base::DictionaryValue>
|
||||
ElectronMessagingDelegate::MaybeGetTabInfo(content::WebContents* web_contents) {
|
||||
absl::optional<base::Value::Dict> ElectronMessagingDelegate::MaybeGetTabInfo(
|
||||
content::WebContents* web_contents) {
|
||||
if (web_contents) {
|
||||
auto* api_contents = electron::api::WebContents::From(web_contents);
|
||||
if (api_contents) {
|
||||
api::tabs::Tab tab;
|
||||
tab.id = api_contents->ID();
|
||||
tab.url = std::make_unique<std::string>(api_contents->GetURL().spec());
|
||||
tab.title = std::make_unique<std::string>(
|
||||
base::UTF16ToUTF8(api_contents->GetTitle()));
|
||||
tab.url = api_contents->GetURL().spec();
|
||||
tab.title = base::UTF16ToUTF8(api_contents->GetTitle());
|
||||
tab.audible = api_contents->IsCurrentlyAudible();
|
||||
return tab.ToValue();
|
||||
return std::move(tab.ToValue()->GetDict());
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
return absl::nullopt;
|
||||
}
|
||||
|
||||
content::WebContents* ElectronMessagingDelegate::GetWebContentsByTabId(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue