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

Unified Diff: chrome/renderer/webplugin_delegate_proxy.cc

Issue 6609008: Change other usages of .size() to .empty() when applicable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter nits Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc ('k') | chrome/renderer/webworker_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webplugin_delegate_proxy.cc
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc
index bc6584336eb23950f9e84eed78d251fb1959d083..340b81ab56256d8cb2b1911766a969fa010c5813 100644
--- a/chrome/renderer/webplugin_delegate_proxy.cc
+++ b/chrome/renderer/webplugin_delegate_proxy.cc
@@ -1341,7 +1341,7 @@ void WebPluginDelegateProxy::CopyFromTransportToBacking(const gfx::Rect& rect) {
rect.y() * stride + 4 * rect.x();
// The two bitmaps are flipped relative to each other.
int dest_starting_row = plugin_rect_.height() - rect.y() - 1;
- DCHECK(backing_store_.size() > 0);
+ DCHECK(!backing_store_.empty());
uint8* target_data = &(backing_store_[0]) + dest_starting_row * stride +
4 * rect.x();
for (int row = 0; row < rect.height(); ++row) {
« no previous file with comments | « chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc ('k') | chrome/renderer/webworker_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698