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

Unified Diff: chrome/browser/ui/webui/bug_report_ui.cc

Issue 6609008: Change other usages of .size() to .empty() when applicable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Up 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/ui/webui/bug_report_ui.cc
diff --git a/chrome/browser/ui/webui/bug_report_ui.cc b/chrome/browser/ui/webui/bug_report_ui.cc
index 82ced3ad55df7ef1292ffa4c2da2d4fa9511b42f..043ca290338984dfb52aa94bc64d5878a2ffe199 100644
--- a/chrome/browser/ui/webui/bug_report_ui.cc
+++ b/chrome/browser/ui/webui/bug_report_ui.cc
@@ -633,7 +633,7 @@ void BugReportHandler::HandleSendReport(const ListValue* list_value) {
// Get the image to send in the report.
std::vector<unsigned char> image;
- if (screenshot_path.size() > 0) {
+ if (!screenshot_path.empty()) {
Peter Kasting 2011/03/03 19:35:53 Nit: No need for {}
image = screenshot_source_->GetScreenshot(screenshot_path);
}

Powered by Google App Engine
This is Rietveld 408576698