From 4e3c752307b8a68f8d279aa4612662f8684f5363 Mon Sep 17 00:00:00 2001 From: "nasko@chromium.org" Date: Tue, 13 Aug 2013 11:53:18 +0000 Subject: 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 --- content/browser/browser_plugin/browser_plugin_guest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/browser/browser_plugin/browser_plugin_guest.cc') 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), -- cgit v1.1