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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/render_thread.h" 5 #include "chrome/renderer/render_thread.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 void RenderThread::OnSetIsIncognitoProcess(bool is_incognito_process) { 1083 void RenderThread::OnSetIsIncognitoProcess(bool is_incognito_process) {
1084 is_incognito_process_ = is_incognito_process; 1084 is_incognito_process_ = is_incognito_process;
1085 } 1085 }
1086 1086
1087 void RenderThread::OnGpuChannelEstablished( 1087 void RenderThread::OnGpuChannelEstablished(
1088 const IPC::ChannelHandle& channel_handle, 1088 const IPC::ChannelHandle& channel_handle,
1089 base::ProcessHandle renderer_process_for_gpu, 1089 base::ProcessHandle renderer_process_for_gpu,
1090 const GPUInfo& gpu_info) { 1090 const GPUInfo& gpu_info) {
1091 gpu_channel_->set_gpu_info(gpu_info); 1091 gpu_channel_->set_gpu_info(gpu_info);
1092 1092
1093 if (channel_handle.name.size() != 0) { 1093 if (!channel_handle.name.empty()) {
1094 // Connect to the GPU process if a channel name was received. 1094 // Connect to the GPU process if a channel name was received.
1095 gpu_channel_->Connect(channel_handle, renderer_process_for_gpu); 1095 gpu_channel_->Connect(channel_handle, renderer_process_for_gpu);
1096 } else { 1096 } else {
1097 // Otherwise cancel the connection. 1097 // Otherwise cancel the connection.
1098 gpu_channel_ = NULL; 1098 gpu_channel_ = NULL;
1099 } 1099 }
1100 } 1100 }
1101 1101
1102 void RenderThread::OnSetPhishingModel(IPC::PlatformFileForTransit model_file) { 1102 void RenderThread::OnSetPhishingModel(IPC::PlatformFileForTransit model_file) {
1103 safe_browsing::PhishingClassifierDelegate::SetPhishingModel(model_file); 1103 safe_browsing::PhishingClassifierDelegate::SetPhishingModel(model_file);
(...skipping 29 matching lines...) Expand all
1133 } 1133 }
1134 1134
1135 return false; 1135 return false;
1136 } 1136 }
1137 1137
1138 void RenderThread::RegisterExtension(v8::Extension* extension, 1138 void RenderThread::RegisterExtension(v8::Extension* extension,
1139 bool restrict_to_extensions) { 1139 bool restrict_to_extensions) {
1140 WebScriptController::registerExtension(extension); 1140 WebScriptController::registerExtension(extension);
1141 v8_extensions_[extension->name()] = restrict_to_extensions; 1141 v8_extensions_[extension->name()] = restrict_to_extensions;
1142 } 1142 }
OLDNEW
« 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