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

Unified Diff: chrome/renderer/render_thread.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/common/web_apps_unittest.cc ('k') | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.cc
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 49da6e25d7d55b62f62ff9a2cef82dccc588b642..6d34fca1847802ba91b924801a2fea9707599096 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -1090,7 +1090,7 @@ void RenderThread::OnGpuChannelEstablished(
const GPUInfo& gpu_info) {
gpu_channel_->set_gpu_info(gpu_info);
- if (channel_handle.name.size() != 0) {
+ if (!channel_handle.name.empty()) {
// Connect to the GPU process if a channel name was received.
gpu_channel_->Connect(channel_handle, renderer_process_for_gpu);
} else {
« no previous file with comments | « chrome/common/web_apps_unittest.cc ('k') | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698