diff options
author | nasko@chromium.org <nasko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-13 11:53:18 +0000 |
---|---|---|
committer | nasko@chromium.org <nasko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-13 11:53:18 +0000 |
commit | 4e3c752307b8a68f8d279aa4612662f8684f5363 (patch) | |
tree | 9db812137ad3acc1c6562853fb0838d448aa38e1 /content/browser/browser_plugin/browser_plugin_guest.cc | |
parent | c0101c75c353ec1d932e1d531617b963714ac17d (diff) | |
download | chromium_src-4e3c752307b8a68f8d279aa4612662f8684f5363.zip chromium_src-4e3c752307b8a68f8d279aa4612662f8684f5363.tar.gz chromium_src-4e3c752307b8a68f8d279aa4612662f8684f5363.tar.bz2 |
Content changes for GetURL refactor.
The GetURL method doesn't cover the different use cases for it, so it is being split up and the original will be removed.
This CL is converting content code to use the proper version of WebContents::GetURL API.
BUG=237908
Review URL: https://chromiumcodereview.appspot.com/21173002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_plugin/browser_plugin_guest.cc')
-rw-r--r-- | content/browser/browser_plugin/browser_plugin_guest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc index a8d164a..c0652dd 100644 --- a/content/browser/browser_plugin/browser_plugin_guest.cc +++ b/content/browser/browser_plugin/browser_plugin_guest.cc @@ -127,7 +127,7 @@ class BrowserPluginGuest::GeolocationRequest : public PermissionRequest { // in the fact whether the embedder/app has geolocation // permission. Therefore we use an invalid |bridge_id|. -1 /* bridge_id */, - web_contents->GetURL(), + web_contents->GetLastCommittedURL(), geolocation_callback); return; } @@ -1260,7 +1260,7 @@ void BrowserPluginGuest::OnLockMouse(bool user_gesture, base::Value::CreateBooleanValue(last_unlocked_by_target)); request_info.Set(browser_plugin::kURL, base::Value::CreateStringValue( - web_contents()->GetURL().spec())); + web_contents()->GetLastCommittedURL().spec())); RequestPermission(BROWSER_PLUGIN_PERMISSION_TYPE_POINTER_LOCK, new PointerLockRequest(this), |