diff --git a/app/atom_main_delegate.h b/app/atom_main_delegate.h index 2ff8af6a1da6..f8ee3d52e847 100644 --- a/app/atom_main_delegate.h +++ b/app/atom_main_delegate.h @@ -14,7 +14,7 @@ class AtomMainDelegate : public brightray::MainDelegate { AtomMainDelegate(); ~AtomMainDelegate(); -protected: + protected: virtual void PreSandboxStartup() OVERRIDE; private: diff --git a/renderer/atom_render_view_observer.cc b/renderer/atom_render_view_observer.cc index 001ceebc37e8..d0f4ebe18d40 100644 --- a/renderer/atom_render_view_observer.cc +++ b/renderer/atom_render_view_observer.cc @@ -40,14 +40,14 @@ bool EnterFirstWindowContext() { bool IsValidWindowContext(v8::Handle context) { size_t size = web_frames().size(); - for (size_t i = 0; i < size; ++i) + for (size_t i = 0; i < size; ++i) if (web_frames()[i]->mainWorldScriptContext() == context) return true; return false; } -} +} // namespace AtomRenderViewObserver::AtomRenderViewObserver( content::RenderView* render_view, diff --git a/renderer/atom_render_view_observer.h b/renderer/atom_render_view_observer.h index d70dcf29b136..650254fb6811 100644 --- a/renderer/atom_render_view_observer.h +++ b/renderer/atom_render_view_observer.h @@ -16,12 +16,13 @@ class AtomRenderViewObserver : content::RenderViewObserver { explicit AtomRenderViewObserver(content::RenderView* render_view, AtomRendererClient* renderer_client); - private: + protected: virtual ~AtomRenderViewObserver(); virtual void DidClearWindowObject(WebKit::WebFrame*) OVERRIDE; virtual void FrameWillClose(WebKit::WebFrame*) OVERRIDE; + private: // Weak reference to renderer client. AtomRendererClient* renderer_client_;