Refine FontLoadHistograms::recordRemoteFont() logic
1. Move cacheHitHistogram count out of if statement to include memory cache hits, whose |m_loadStartTime| is 0. 2. Remove redundant checks in if statement. After previous refactoring, recordRemoteFont() is now only called once from notifyFinished(), and |font| here is always available and loaded. 3. Use DataSource to determine cases to record load time (data URL loads have non-zero |m_loadStartTime| but should complete immediately). Review-Url: https://codereview.chromium.org/2342273003 Cr-Commit-Position: refs/heads/master@{#419144}
Showing
Please register or sign in to comment