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

Side by Side Diff: content/shell/renderer/shell_render_view_observer.cc

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/renderer/shell_render_view_observer.h" 5 #include "content/shell/renderer/shell_render_view_observer.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/public/renderer/render_view.h" 8 #include "content/public/renderer/render_view.h"
9 #include "content/public/renderer/render_view_observer.h" 9 #include "content/public/renderer/render_view_observer.h"
10 #include "content/shell/common/shell_switches.h" 10 #include "content/shell/common/shell_switches.h"
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 void ShellRenderViewObserver::DidClearWindowObject( 23 void ShellRenderViewObserver::DidClearWindowObject(
24 blink::WebLocalFrame* frame) { 24 blink::WebLocalFrame* frame) {
25 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 25 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
26 switches::kExposeInternalsForTesting)) { 26 switches::kExposeInternalsForTesting)) {
27 blink::WebTestingSupport::injectInternalsObject(frame); 27 blink::WebTestingSupport::injectInternalsObject(frame);
28 } 28 }
29 } 29 }
30 30
31 void ShellRenderViewObserver::OnDestruct() {
32 delete this;
33 }
34
31 } // namespace content 35 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/shell_render_view_observer.h ('k') | extensions/renderer/api/automation/automation_api_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698