Commit 8222b0cf authored by James Vecore's avatar James Vecore Committed by Commit Bot

[Nearby] Use profile from the share sheet controller

Bug: b:154865204
Change-Id: I0edd7de777ecdcade982e9dadb30449d0c4b5b77
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2385875Reviewed-by: default avatarRyan Hansberry <hansberry@chromium.org>
Commit-Queue: James Vecore <vecore@google.com>
Cr-Commit-Position: refs/heads/master@{#803162}
parent d88fc9cc
......@@ -99,8 +99,7 @@ void NearbyShareAction::LaunchAction(
gfx::Size size = ComputeSize();
controller->SetSharesheetSize(size.width(), size.height());
// TODO(vecore): SharesheetController will eventually provide the profile.
auto* profile = ProfileManager::GetLastUsedProfileAllowedByPolicy();
auto* profile = controller->GetProfile();
auto view = std::make_unique<views::WebView>(profile);
// If this is not done, we don't see anything in our view.
view->SetPreferredSize(size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment