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

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

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_content_renderer_client.h" 5 #include "content/shell/renderer/shell_content_renderer_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "components/web_cache/renderer/web_cache_render_process_observer.h" 8 #include "components/web_cache/renderer/web_cache_render_process_observer.h"
9 #include "content/public/renderer/render_thread.h" 9 #include "content/public/renderer/render_thread.h"
10 #include "content/shell/renderer/shell_render_view_observer.h" 10 #include "content/shell/renderer/shell_render_view_observer.h"
(...skipping 14 matching lines...) Expand all
25 web_cache_observer_.reset(new web_cache::WebCacheRenderProcessObserver()); 25 web_cache_observer_.reset(new web_cache::WebCacheRenderProcessObserver());
26 thread->AddObserver(web_cache_observer_.get()); 26 thread->AddObserver(web_cache_observer_.get());
27 } 27 }
28 28
29 void ShellContentRendererClient::RenderViewCreated(RenderView* render_view) { 29 void ShellContentRendererClient::RenderViewCreated(RenderView* render_view) {
30 new ShellRenderViewObserver(render_view); 30 new ShellRenderViewObserver(render_view);
31 } 31 }
32 32
33 bool ShellContentRendererClient::IsPluginAllowedToUseCompositorAPI( 33 bool ShellContentRendererClient::IsPluginAllowedToUseCompositorAPI(
34 const GURL& url) { 34 const GURL& url) {
35 return CommandLine::ForCurrentProcess()->HasSwitch( 35 return base::CommandLine::ForCurrentProcess()->HasSwitch(
36 switches::kEnablePepperTesting); 36 switches::kEnablePepperTesting);
37 } 37 }
38 38
39 bool ShellContentRendererClient::IsPluginAllowedToUseVideoDecodeAPI( 39 bool ShellContentRendererClient::IsPluginAllowedToUseVideoDecodeAPI(
40 const GURL& url) { 40 const GURL& url) {
41 return CommandLine::ForCurrentProcess()->HasSwitch( 41 return base::CommandLine::ForCurrentProcess()->HasSwitch(
42 switches::kEnablePepperTesting); 42 switches::kEnablePepperTesting);
43 } 43 }
44 44
45 bool ShellContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() { 45 bool ShellContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() {
46 return CommandLine::ForCurrentProcess()->HasSwitch( 46 return base::CommandLine::ForCurrentProcess()->HasSwitch(
47 switches::kEnablePepperTesting); 47 switches::kEnablePepperTesting);
48 } 48 }
49 49
50 } // namespace content 50 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698