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

Unified Diff: Source/core/page/Page.h

Issue 15820002: Page::chrome() should return a reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 7 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
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | Source/core/page/PageConsole.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.h
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h
index 437c6d684ee7f41dafc572fdfd64a53fc2a01318..1aa0fe49fc955d0a68e53d15de50a3af53254337 100644
--- a/Source/core/page/Page.h
+++ b/Source/core/page/Page.h
@@ -156,7 +156,7 @@ public:
void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount; }
int subframeCount() const { checkSubframeCountConsistency(); return m_subframeCount; }
- Chrome* chrome() const { return m_chrome.get(); }
+ Chrome& chrome() const { return *m_chrome; }
DragCaretController* dragCaretController() const { return m_dragCaretController.get(); }
DragController* dragController() const { return m_dragController.get(); }
FocusController* focusController() const { return m_focusController.get(); }
@@ -336,7 +336,7 @@ private:
bool m_isPainting;
#endif
- OwnPtr<PageConsole> m_console;
+ const OwnPtr<PageConsole> m_console;
HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
};
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | Source/core/page/PageConsole.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698