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

Unified Diff: content/public/browser/navigation_entry.h

Issue 2086423005: Using WebContents::UpdateTitleForEntry() instead of NavigationEntry::SetTitle() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitting the task manager changes into its own CL. 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: content/public/browser/navigation_entry.h
diff --git a/content/public/browser/navigation_entry.h b/content/public/browser/navigation_entry.h
index 92f020f9448166c6eb75d7c68032b4f3acd39280..91fc211f0eaafb0b14874daf36e81abc4111a531 100644
--- a/content/public/browser/navigation_entry.h
+++ b/content/public/browser/navigation_entry.h
@@ -87,6 +87,8 @@ class NavigationEntry {
// The caller is responsible for detecting when there is no title and
// displaying the appropriate "Untitled" label if this is being displayed to
// the user.
+ // Use WebContents::UpdateTitleForEntry() in most cases. Only call the below
Charlie Reis 2016/07/13 22:21:47 Let's elaborate a bit: Use WebContents::UpdateTit
afakhry 2016/07/13 22:52:50 Done.
+ // NavigationEntry::SetTitle() when it's known to be a non-visible entry.
virtual void SetTitle(const base::string16& title) = 0;
virtual const base::string16& GetTitle() const = 0;

Powered by Google App Engine
This is Rietveld 408576698