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

Unified Diff: chrome/browser/gpu_process_host_ui_shim.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/browser/external_tab_container_win.cc ('k') | chrome/browser/history/history_publisher_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gpu_process_host_ui_shim.cc
diff --git a/chrome/browser/gpu_process_host_ui_shim.cc b/chrome/browser/gpu_process_host_ui_shim.cc
index 4dcfdb9f014e8055b8758e618d8837a87909f08b..3f3c806be6e824c5a3aa76b53d503d60e638b809 100644
--- a/chrome/browser/gpu_process_host_ui_shim.cc
+++ b/chrome/browser/gpu_process_host_ui_shim.cc
@@ -416,7 +416,7 @@ void GpuProcessHostUIShim::OnChannelEstablished(
// Currently if any of the GPU features are blacklisted, we don't establish a
// GPU channel.
- if (channel_handle.name.size() != 0 &&
+ if (!channel_handle.name.empty() &&
gpu_data_manager_->GetGpuFeatureFlags().flags() != 0) {
Send(new GpuMsg_CloseChannel(channel_handle));
EstablishChannelError(callback.release(),
@@ -432,7 +432,7 @@ void GpuProcessHostUIShim::OnChannelEstablished(
void GpuProcessHostUIShim::OnSynchronizeReply() {
// Guard against race conditions in abrupt GPU process termination.
- if (synchronize_requests_.size() > 0) {
+ if (!synchronize_requests_.empty()) {
linked_ptr<SynchronizeCallback> callback(synchronize_requests_.front());
synchronize_requests_.pop();
callback->Run();
@@ -440,7 +440,7 @@ void GpuProcessHostUIShim::OnSynchronizeReply() {
}
void GpuProcessHostUIShim::OnCommandBufferCreated(const int32 route_id) {
- if (create_command_buffer_requests_.size() > 0) {
+ if (!create_command_buffer_requests_.empty()) {
linked_ptr<CreateCommandBufferCallback> callback =
create_command_buffer_requests_.front();
create_command_buffer_requests_.pop();
« no previous file with comments | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/history/history_publisher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698