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

Unified Diff: chrome/browser/extensions/extensions_quota_service.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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/extensions/extensions_quota_service.cc
diff --git a/chrome/browser/extensions/extensions_quota_service.cc b/chrome/browser/extensions/extensions_quota_service.cc
index c01b9e3f377aa6e3421b86fb8aad270b0c95b0cd..6b267a5394ec62960add77c2af8cd81a3a134012 100644
--- a/chrome/browser/extensions/extensions_quota_service.cc
+++ b/chrome/browser/extensions/extensions_quota_service.cc
@@ -42,7 +42,7 @@ std::string ExtensionsQuotaService::Assess(
DCHECK(CalledOnValidThread());
if (function->ShouldSkipQuotaLimiting())
- return "";
+ return std::string();
// Lookup function list for extension.
FunctionHeuristicsMap& functions = function_heuristics_[extension_id];
@@ -53,7 +53,7 @@ std::string ExtensionsQuotaService::Assess(
function->GetQuotaLimitHeuristics(&heuristics);
if (heuristics.empty())
- return ""; // No heuristic implies no limit.
+ return std::string(); // No heuristic implies no limit.
ViolationErrorMap::iterator violation_error =
violation_errors_.find(extension_id);
@@ -71,7 +71,7 @@ std::string ExtensionsQuotaService::Assess(
}
if (!failed_heuristic)
- return "";
+ return std::string();
std::string error = failed_heuristic->GetError();
DCHECK_GT(error.length(), 0u);

Powered by Google App Engine
This is Rietveld 408576698