Inlined two GetProfileFromWebContents helpers
In jumbo build experiments (no jumbo for chromium/browser/ui yet) two GetProfileFromWebContents ended up in the same translation unit. Each of them was only used once. This inlines them both. I dropped the null check from the GetProfileFromWebContents() in account_chooser_dialog_view.cc because if that helper returned null, then the code would already crash inside GetDefaultStoragePartition() (GetStoragePartitionFromConfig() will call browser_context->IsOffTheRecord() without any null check). Bug: 803406 Change-Id: I0200eb42c0a54b674eaec6122e1193c931dd2344 Reviewed-on: https://chromium-review.googlesource.com/997793Reviewed-by:Vasilii Sukhanov <vasilii@chromium.org> Commit-Queue: Daniel Bratell <bratell@opera.com> Cr-Commit-Position: refs/heads/master@{#548711}
Showing
Please register or sign in to comment