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

Unified Diff: chrome/browser/debugger/devtools_remote_listen_socket.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
Index: chrome/browser/debugger/devtools_remote_listen_socket.cc
diff --git a/chrome/browser/debugger/devtools_remote_listen_socket.cc b/chrome/browser/debugger/devtools_remote_listen_socket.cc
index 6e2a2ae9cfc3c655712e3f2d0f3317d889bf838c..19234e55b7f60d3a3cbc2376664f59592cc990d5 100644
--- a/chrome/browser/debugger/devtools_remote_listen_socket.cc
+++ b/chrome/browser/debugger/devtools_remote_listen_socket.cc
@@ -164,7 +164,7 @@ void DevToolsRemoteListenSocket::DispatchField() {
}
break;
case HEADERS: {
- if (protocol_field_.size() > 0) { // not end-of-headers
+ if (!protocol_field_.empty()) { // not end-of-headers
std::string::size_type colon_pos = protocol_field_.find_first_of(":");
if (colon_pos == std::string::npos) {
// TODO(apavlov): handle the error (malformed header)

Powered by Google App Engine
This is Rietveld 408576698