Refactor GetBrowserModelId so it doesn't call BuildAppModelId.
GetChromiumModelIdForProfile passes the result of GetBrowserModelId to BuildAppModelId, but GetBrowserModelId calls BuildAppModelId. Conceptually, it's cleaner if BuildAppModelId is always the last step in computing an app model id. To do this, we have to extract out a method to shorten an app model id component, so that GetBrowserModelId can use it, instead of using BuildAppModelId. Change-Id: I633c41b83bfc14c52bb4b5e364bce8dfc68cdde2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2304162 Commit-Queue: David Bienvenu <davidbienvenu@chromium.org> Reviewed-by:Greg Thompson <grt@chromium.org> Cr-Commit-Position: refs/heads/master@{#789976}
Showing
Please register or sign in to comment