| 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();
|
|
|