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

Side by Side Diff: content/renderer/renderer_main_platform_delegate_win.cc

Issue 1995573004: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/renderer/renderer_main_platform_delegate.h" 5 #include "content/renderer/renderer_main_platform_delegate.h"
6 6
7 #include <dwrite.h> 7 #include <dwrite.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "third_party/WebKit/public/web/win/WebFontRendering.h" 25 #include "third_party/WebKit/public/web/win/WebFontRendering.h"
26 #include "third_party/icu/source/i18n/unicode/timezone.h" 26 #include "third_party/icu/source/i18n/unicode/timezone.h"
27 #include "third_party/skia/include/ports/SkTypeface_win.h" 27 #include "third_party/skia/include/ports/SkTypeface_win.h"
28 #include "ui/display/win/dpi.h" 28 #include "ui/display/win/dpi.h"
29 #include "ui/gfx/win/direct_write.h" 29 #include "ui/gfx/win/direct_write.h"
30 30
31 namespace content { 31 namespace content {
32 32
33 RendererMainPlatformDelegate::RendererMainPlatformDelegate( 33 RendererMainPlatformDelegate::RendererMainPlatformDelegate(
34 const MainFunctionParams& parameters) 34 const MainFunctionParams& parameters)
35 : parameters_(parameters), 35 : parameters_(parameters) {}
36 sandbox_test_module_(NULL) {
37 }
38 36
39 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { 37 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() {
40 } 38 }
41 39
42 void RendererMainPlatformDelegate::PlatformInitialize() { 40 void RendererMainPlatformDelegate::PlatformInitialize() {
43 const base::CommandLine& command_line = parameters_.command_line; 41 const base::CommandLine& command_line = parameters_.command_line;
44 42
45 // Be mindful of what resources you acquire here. They can be used by 43 // Be mindful of what resources you acquire here. They can be used by
46 // malicious code if the renderer gets compromised. 44 // malicious code if the renderer gets compromised.
47 bool no_sandbox = command_line.HasSwitch(switches::kNoSandbox); 45 bool no_sandbox = command_line.HasSwitch(switches::kNoSandbox);
(...skipping 26 matching lines...) Expand all
74 unsigned int dummy_rand; 72 unsigned int dummy_rand;
75 rand_s(&dummy_rand); 73 rand_s(&dummy_rand);
76 74
77 target_services->LowerToken(); 75 target_services->LowerToken();
78 return true; 76 return true;
79 } 77 }
80 return false; 78 return false;
81 } 79 }
82 80
83 } // namespace content 81 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698