Extensions: Cleanups related to ExtensionAPIFrameIdMap and ExtensionNavigationUIData.
This CL does the following cleanups in files related to ExtensionAPIFrameIdMap and ExtensionNavigationUIData: - Consolidate code to populate tab data as a static method in ChromeExtensionAPIFrameIdMapHelper. - Use extension_misc::kUnknownTabId and extension_misc::kUnknownWindowId in place of hard-coded constants. - Rename ExtensionAPIFrameIdMap::[Cache/Remove]FrameData to ExtensionAPIFrameIdMap::OnRenderFrame[Created/Deleted]. This should help us reason about the lifetime of RenderFrameHosts as seen in ExtensionAPIFrameIdMap. - Rename ExtensionApiFrameIdMapHelper::GetTabAndWindowId to PopulateTabData. - Some other small cleanups (headers, make_unique etc.) This CL should have no behavioral changes. BUG=None Change-Id: I1ff9aab92aab4d69f5fae511be6fb072e2b70107 Reviewed-on: https://chromium-review.googlesource.com/936322 Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Reviewed-by:John Abd-El-Malek <jam@chromium.org> Reviewed-by:
Istiaque Ahmed <lazyboy@chromium.org> Cr-Commit-Position: refs/heads/master@{#540375}
Showing
Please register or sign in to comment