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

Unified Diff: Source/core/page/Navigator.cpp

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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
« no previous file with comments | « Source/core/page/MouseEventWithHitTestResults.h ('k') | Source/core/page/NavigatorBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Navigator.cpp
diff --git a/Source/core/page/Navigator.cpp b/Source/core/page/Navigator.cpp
index 9d6aca81816bade24eb0cccff89339d65305133d..76020dbd1bc10521f205cf8c29910e5611e87bff 100644
--- a/Source/core/page/Navigator.cpp
+++ b/Source/core/page/Navigator.cpp
@@ -82,12 +82,12 @@ String Navigator::userAgent() const
{
if (!m_frame)
return String();
-
+
// If the frame is already detached, FrameLoader::userAgent may malfunction, because it calls a client method
// that uses frame's WebView (at least, in Mac WebKit).
if (!m_frame->page())
return String();
-
+
return m_frame->loader()->userAgent(m_frame->document()->url());
}
« no previous file with comments | « Source/core/page/MouseEventWithHitTestResults.h ('k') | Source/core/page/NavigatorBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698