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

Unified Diff: content/browser/frame_host/frame_tree_node.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/frame_tree.cc ('k') | content/browser/frame_host/navigation_controller_impl.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_node.cc
diff --git a/content/browser/frame_host/frame_tree_node.cc b/content/browser/frame_host/frame_tree_node.cc
index 3f789ef905cca6578e1778ef5eea8944e8e3c3e8..9fcb48b80b71b36f76b718ecfada7dbba0f37746 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -206,7 +206,7 @@ void FrameTreeNode::SetOpener(FrameTreeNode* opener) {
}
void FrameTreeNode::SetCurrentURL(const GURL& url) {
- if (!has_committed_real_load_ && url != GURL(url::kAboutBlankURL))
+ if (!has_committed_real_load_ && url != url::kAboutBlankURL)
has_committed_real_load_ = true;
current_frame_host()->set_last_committed_url(url);
blame_context_.TakeSnapshot();
« no previous file with comments | « content/browser/frame_host/frame_tree.cc ('k') | content/browser/frame_host/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698