Index: chrome/browser/password_manager/chrome_password_manager_client.cc |
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc |
index 49da307f654d33c083b664ce73dbb383b97fc86f..725c3fd6dafe6d9be0dd844a386550738a0fe00d 100644 |
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc |
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc |
@@ -574,12 +574,9 @@ const GURL& ChromePasswordManagerClient::GetMainFrameURL() const { |
const GURL& ChromePasswordManagerClient::GetLastCommittedEntryURL() const { |
DCHECK(web_contents()); |
- content::NavigationEntry* entry = |
- web_contents()->GetController().GetLastCommittedEntry(); |
- if (!entry) |
- return GURL::EmptyGURL(); |
- |
- return entry->GetURL(); |
+ // TODO(creis): Clean up rest of uses from |
+ // https://codereview.chromium.org/1260263002. |
+ return web_contents()->GetController().GetLastCommittedEntry()->GetURL(); |
} |
const password_manager::CredentialsFilter* |