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

Unified Diff: chrome/browser/devtools/devtools_ui_bindings.cc

Issue 2086423005: Using WebContents::UpdateTitleForEntry() instead of NavigationEntry::SetTitle() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error Created 4 years, 5 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/devtools/devtools_ui_bindings.cc
diff --git a/chrome/browser/devtools/devtools_ui_bindings.cc b/chrome/browser/devtools/devtools_ui_bindings.cc
index e083cfbf8aa6f592c6766830864c135922a40f1e..c38e7625a5d32534b53c897fab39be5b40cc77a6 100644
--- a/chrome/browser/devtools/devtools_ui_bindings.cc
+++ b/chrome/browser/devtools/devtools_ui_bindings.cc
@@ -536,9 +536,8 @@ void DevToolsUIBindings::InspectedURLChanged(const std::string& url) {
content::NavigationController& controller = web_contents()->GetController();
content::NavigationEntry* entry = controller.GetActiveEntry();
// DevTools UI is not localized.
ncarter (slow) 2016/07/13 18:56:02 question for charlie: can we/should we need to do
Charlie Reis 2016/07/13 21:02:23 I think we need to keep it for cases that use it b
afakhry 2016/07/13 22:10:27 Done, added the comment.
- entry->SetTitle(
- base::UTF8ToUTF16(base::StringPrintf(kTitleFormat, url.c_str())));
- web_contents()->NotifyNavigationStateChanged(content::INVALIDATE_TYPE_TITLE);
+ web_contents()->UpdateTitleForEntry(
+ entry, base::UTF8ToUTF16(base::StringPrintf(kTitleFormat, url.c_str())));
}
void DevToolsUIBindings::LoadNetworkResource(const DispatchCallback& callback,

Powered by Google App Engine
This is Rietveld 408576698