Skip to content

Commit

Permalink
Try to make backportable again
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsakh committed Jan 24, 2019
1 parent b3d1a24 commit f411cd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions atom/renderer/api/atom_api_web_frame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,15 @@ void WebFrame::SetSpellCheckProvider(mate::Arguments* args,
return;
}

auto spell_check_client =
auto client =
std::make_unique<SpellCheckClient>(language, args->isolate(), provider);
// Set spellchecker for all live frames in the same process or
// in the sandbox mode for all live sub frames to this WebFrame.
auto* render_frame = content::RenderFrame::FromWebFrame(web_frame_);
FrameSpellChecker spell_checker(spell_check_client.get(), render_frame);
FrameSpellChecker spell_checker(client.get(), render_frame);
content::RenderFrame::ForEach(&spell_checker);
web_frame_->SetSpellCheckPanelHostClient(spell_check_client.get());
new AtomWebFrameObserver(render_frame, std::move(spell_check_client));
web_frame_->SetSpellCheckPanelHostClient(client.get());
new AtomWebFrameObserver(render_frame, std::move(client));
}

void WebFrame::RegisterURLSchemeAsBypassingCSP(const std::string& scheme) {
Expand Down

0 comments on commit f411cd2

Please sign in to comment.