diff options
author | craig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-11 04:36:05 +0000 |
---|---|---|
committer | craig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-11 04:36:05 +0000 |
commit | 4c66d2a859776c05767f05472cbfa9519ca01aff (patch) | |
tree | 4ba514f08aedb79783bc19e7c31ca1de82552ea7 /chrome/renderer | |
parent | 0b330bf9a3164dc61ce4b88c386e44c36e7bfa60 (diff) | |
download | chromium_src-4c66d2a859776c05767f05472cbfa9519ca01aff.zip chromium_src-4c66d2a859776c05767f05472cbfa9519ca01aff.tar.gz chromium_src-4c66d2a859776c05767f05472cbfa9519ca01aff.tar.bz2 |
Linux: fix compilation error with gcc 4.5.
Avoid a gcc 4.5 warning/error for values that aren't part
of NPNVariable. Also drop some unnecessary static_casts by
swapping from an int to a size_t in TemplateURLRef's
Replacement struct and use platform specific NULL or 0
constants in a couple of places.
BUG=43341
TEST=chrome target compiles with gcc 4.5.
Review URL: http://codereview.chromium.org/2019002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46889 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc index 683382d..c545c87 100644 --- a/chrome/renderer/webplugin_delegate_pepper.cc +++ b/chrome/renderer/webplugin_delegate_pepper.cc @@ -395,7 +395,7 @@ NPError WebPluginDelegatePepper::Device2DInitializeContext( // This is a windowless plugin, so set it to have no handle. Defer this // until we know the plugin will use the 2D device. If it uses the 3D device // it will have a window handle. - plugin_->SetWindow(0); + plugin_->SetWindow(gfx::kNullPluginWindow); scoped_ptr<Graphics2DDeviceContext> g2d(new Graphics2DDeviceContext(this)); NPError status = g2d->Initialize(window_rect_, config, context); |