diff --git a/atom/browser/atom_browser_client.cc b/atom/browser/atom_browser_client.cc index a2498cb346b..5620e53c155 100644 --- a/atom/browser/atom_browser_client.cc +++ b/atom/browser/atom_browser_client.cc @@ -106,10 +106,10 @@ bool AtomBrowserClient::ShouldCreateNewSiteInstance( auto web_contents = content::WebContents::FromRenderFrameHost(render_frame_host); if (!ChildWebContentsTracker::IsChildWebContents(web_contents)) { - // Root WebContents should always create new process - // to make sure native addons are loaded correctly after reload / navigation. - // (Non-root WebContents opened by window.open() should try to reuse process - // to allow synchronous cross-window scripting.) + // Root WebContents should always create new process to make sure + // native addons are loaded correctly after reload / navigation. + // (Non-root WebContents opened by window.open() should try to + // reuse process to allow synchronous cross-window scripting.) return true; } } diff --git a/atom/browser/child_web_contents_tracker.cc b/atom/browser/child_web_contents_tracker.cc index 3058fe9906b..3c9eb0d3f04 100644 --- a/atom/browser/child_web_contents_tracker.cc +++ b/atom/browser/child_web_contents_tracker.cc @@ -1,4 +1,9 @@ -#include "child_web_contents_tracker.h" +// Copyright (c) 2017 GitHub, Inc. +// Use of this source code is governed by the MIT license that can be +// found in the LICENSE file. + +#include "atom/browser/child_web_contents_tracker.h" + #include namespace atom { diff --git a/atom/browser/child_web_contents_tracker.h b/atom/browser/child_web_contents_tracker.h index ab12f4b374a..785509e6ea7 100644 --- a/atom/browser/child_web_contents_tracker.h +++ b/atom/browser/child_web_contents_tracker.h @@ -1,3 +1,7 @@ +// Copyright (c) 2017 GitHub, Inc. +// Use of this source code is governed by the MIT license that can be +// found in the LICENSE file. + #ifndef ATOM_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_ #define ATOM_BROWSER_CHILD_WEB_CONTENTS_TRACKER_H_ @@ -9,7 +13,7 @@ namespace atom { // created by native `window.open()` class ChildWebContentsTracker : public content::WebContentsObserver { public: - ChildWebContentsTracker(content::WebContents* web_contents); + explicit ChildWebContentsTracker(content::WebContents* web_contents); static bool IsChildWebContents(content::WebContents* web_contents); protected: