From 17a9c2aea5285f5bc325ebd7d9f2a2dc72504826 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 20 Apr 2013 14:03:55 +0800 Subject: [PATCH] :lipstick: for cpplint. --- app/atom_main_delegate.h | 2 +- renderer/atom_render_view_observer.cc | 4 ++-- renderer/atom_render_view_observer.h | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/atom_main_delegate.h b/app/atom_main_delegate.h index 2ff8af6a1da..f8ee3d52e84 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 001ceebc37e..d0f4ebe18d4 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 d70dcf29b13..650254fb681 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_;