Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Unified Diff: content/browser/frame_host/frame_tree.cc

Issue 2424913003: Avoid unnecessary URL parsing for GURL comparisons in //content (Closed)
Patch Set: rebase on dependent PS Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/frame_host/debug_urls.cc ('k') | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_tree.cc
diff --git a/content/browser/frame_host/frame_tree.cc b/content/browser/frame_host/frame_tree.cc
index 511454f4d1069275dedc0d193778593d0d395985..370946e428b8d77be1edc2b815a36d53b1b0ce29 100644
--- a/content/browser/frame_host/frame_tree.cc
+++ b/content/browser/frame_host/frame_tree.cc
@@ -418,7 +418,7 @@ void FrameTree::UpdateLoadProgress() {
// Ignore the current frame if it has not started loading,
// if the frame is cross-origin, or about:blank.
if (!node->has_started_loading() || !node->HasSameOrigin(*root_) ||
- node->current_url() == GURL(url::kAboutBlankURL))
+ node->current_url() == url::kAboutBlankURL)
continue;
progress += node->loading_progress();
frame_count++;
« no previous file with comments | « content/browser/frame_host/debug_urls.cc ('k') | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698