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

Issue 2076063002: Clarify that WebContents::GetLastCommittedURL returns the virtual URL. (Closed)

Created:
4 years, 6 months ago by dominickn
Modified:
4 years, 6 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, darin-cc_chromium.org, jam, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clarify that WebContents::GetLastCommittedURL returns the virtual URL. NavigationHandle::GetURL is not necessarily consistent with WebContents::GetLastCommittedURL, as the URL being navigated to may be changed for display in the URL bar. For example, when viewing the page source, NavigationHandle::GetURL returns the page's URL, but WebContents::GetLastCommittedURL returns the URL prefixed with "view-source:". This CL notes the difference in the header comments for both methods. BUG=618553 Committed: https://crrev.com/319d693f722a8bc60ca52b6735b8efae7875d5d0 Cr-Commit-Position: refs/heads/master@{#400857}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M content/public/browser/navigation_handle.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 1 chunk +12 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
dominickn
Hi Charlie, PTAL thanks! This is a minor header comment update.
4 years, 6 months ago (2016-06-17 08:53:04 UTC) #2
Charlie Reis
Thanks for getting to this, and sorry for not having a chance to take a ...
4 years, 6 months ago (2016-06-20 17:33:06 UTC) #3
dominickn
Thanks! https://codereview.chromium.org/2076063002/diff/1/content/public/browser/navigation_handle.h File content/public/browser/navigation_handle.h (right): https://codereview.chromium.org/2076063002/diff/1/content/public/browser/navigation_handle.h#newcode44 content/public/browser/navigation_handle.h:44: // virtual URL is prefixed with "view-source". On ...
4 years, 6 months ago (2016-06-20 23:56:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2076063002/20001
4 years, 6 months ago (2016-06-20 23:56:47 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-21 00:59:43 UTC) #8
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 01:02:26 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/319d693f722a8bc60ca52b6735b8efae7875d5d0
Cr-Commit-Position: refs/heads/master@{#400857}

Powered by Google App Engine
This is Rietveld 408576698