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

Unified Diff: chrome/renderer/webplugin_delegate_proxy.cc

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/webplugin_delegate_proxy.cc
===================================================================
--- chrome/renderer/webplugin_delegate_proxy.cc (revision 69787)
+++ chrome/renderer/webplugin_delegate_proxy.cc (working copy)
@@ -21,7 +21,6 @@
#include "base/sys_info.h"
#include "base/utf_string_conversions.h"
#include "chrome/common/child_process_logging.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/common/plugin_messages.h"
#include "chrome/common/render_messages.h"
#include "chrome/plugin/npobject_proxy.h"
@@ -518,10 +517,10 @@
#endif
if (uses_shared_bitmaps_) {
+ SkDevice* device = backing_store_canvas_->getDevice();
James Hawkins 2010/12/22 21:54:36 Please don't add unrelated changes like this to th
Lei Zhang 2011/01/08 01:51:36 Ok.
if (!backing_store_canvas_.get() ||
- (window_rect.width() != backing_store_canvas_->getDevice()->width() ||
- window_rect.height() != backing_store_canvas_->getDevice()->height()))
- {
+ (window_rect.width() != device->width() ||
+ window_rect.height() != device->height())) {
bitmaps_changed = true;
bool needs_background_store = transparent_;
@@ -1564,4 +1563,3 @@
plugin_->URLRedirectResponse(allow, resource_id);
}
-

Powered by Google App Engine
This is Rietveld 408576698