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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_api.cc

Issue 2434063002: Move extensions code from WebContents::GetURL to GetLastCommittedURL.
Patch Set: Refactor to simplify. 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
Index: chrome/browser/extensions/api/tabs/tabs_api.cc
diff --git a/chrome/browser/extensions/api/tabs/tabs_api.cc b/chrome/browser/extensions/api/tabs/tabs_api.cc
index b0bc10e7696ae612ea84446bac640a245717b301..e7ccecf9cd83214fa434d2b7aacc8210cf719de5 100644
--- a/chrome/browser/extensions/api/tabs/tabs_api.cc
+++ b/chrome/browser/extensions/api/tabs/tabs_api.cc
@@ -1339,7 +1339,7 @@ void TabsUpdateFunction::PopulateResult() {
return;
results_ = tabs::Get::Results::Create(
- *ExtensionTabUtil::CreateTabObject(web_contents_, extension()));
+ *ExtensionTabUtil::CreateTabObjectVisibleUrl(web_contents_, extension()));
}
void TabsUpdateFunction::OnExecuteCodeFinished(
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_tab_util.h » ('j') | chrome/browser/extensions/extension_tab_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698