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

Unified Diff: Source/core/frame/FrameConsole.h

Issue 593583002: Assert that frame() derefs a non-null pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/editing/SpellChecker.h ('k') | Source/core/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameConsole.h
diff --git a/Source/core/frame/FrameConsole.h b/Source/core/frame/FrameConsole.h
index 130e6f440040ce00b49290bd2b57021a6778b001..846c099836834f13d179f17620429d4435a7d4d1 100644
--- a/Source/core/frame/FrameConsole.h
+++ b/Source/core/frame/FrameConsole.h
@@ -72,7 +72,11 @@ public:
private:
explicit FrameConsole(LocalFrame&);
- LocalFrame& frame() const { return *m_frame; }
+ LocalFrame& frame() const
+ {
+ ASSERT(m_frame);
+ return *m_frame;
+ }
RawPtrWillBeMember<LocalFrame> m_frame;
OwnPtrWillBeMember<ConsoleMessageStorage> m_consoleMessageStorage;
« no previous file with comments | « Source/core/editing/SpellChecker.h ('k') | Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698