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

Unified Diff: printing/backend/cups_helper.h

Issue 1982883002: Use StringPiece in cups_helper.cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | printing/backend/cups_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/cups_helper.h
diff --git a/printing/backend/cups_helper.h b/printing/backend/cups_helper.h
index 873f1ec2821253c2493c8c5016821193400d3791..fd7601dc975978edc57c384d6fe92425d77e83cc 100644
--- a/printing/backend/cups_helper.h
+++ b/printing/backend/cups_helper.h
@@ -7,8 +7,7 @@
#include <cups/cups.h>
-#include <string>
-
+#include "base/strings/string_piece.h"
#include "printing/printing_export.h"
class GURL;
@@ -37,8 +36,8 @@ class PRINTING_EXPORT HttpConnectionCUPS {
// Helper function to parse and convert PPD capabilitites to
// semantic options.
PRINTING_EXPORT bool ParsePpdCapabilities(
- const std::string& printer_name,
- const std::string& printer_capabilities,
+ base::StringPiece printer_name,
+ base::StringPiece printer_capabilities,
PrinterSemanticCapsAndDefaults* printer_info);
} // namespace printing
« no previous file with comments | « no previous file | printing/backend/cups_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698