Index: content/browser/tab_contents/tab_contents.h |
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h |
index 8d4848b4671473d17dbfd924f6496309c13a8452..1f3cf4cd1fce3d0e9c712fa0f4d791dfc9ce9cbc 100644 |
--- a/content/browser/tab_contents/tab_contents.h |
+++ b/content/browser/tab_contents/tab_contents.h |
@@ -127,6 +127,9 @@ class CONTENT_EXPORT TabContents : public PageNavigator, |
return render_manager_.web_ui(); |
} |
+ // Returns the committed WebUI if one exists, otherwise the pending one. |
+ // Callers who want to use the pending WebUI for the pending navigation entry |
+ // should use GetWebUIForCurrentState instead. |
WebUI* web_ui() const { |
return render_manager_.web_ui() ? render_manager_.web_ui() |
: render_manager_.pending_web_ui(); |