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

Unified Diff: chromeos/printing/printer_translator.cc

Issue 2975013002: Make chromeos CUPS printing code namespaces consistent. (Closed)
Patch Set: Rebase Created 3 years, 5 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 | « chromeos/printing/printer_translator.h ('k') | chromeos/printing/printer_translator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/printing/printer_translator.cc
diff --git a/chromeos/printing/printer_translator.cc b/chromeos/printing/printer_translator.cc
index 7f7499abc41376ba6c5633bd9a1fe9bf94252c4e..d933bfd9cbfc9be2d41fd11a5f1229b95f13ebb1 100644
--- a/chromeos/printing/printer_translator.cc
+++ b/chromeos/printing/printer_translator.cc
@@ -80,8 +80,6 @@ bool DictionaryToPrinter(const DictionaryValue& value, Printer* printer) {
} // namespace
-namespace printing {
-
const char kPrinterId[] = "id";
std::unique_ptr<Printer> RecommendedPrinterToPrinter(
@@ -90,7 +88,7 @@ std::unique_ptr<Printer> RecommendedPrinterToPrinter(
DCHECK(!timestamp.is_null());
std::string id;
- if (!pref.GetString(printing::kPrinterId, &id)) {
+ if (!pref.GetString(kPrinterId, &id)) {
LOG(WARNING) << "Record id required";
return nullptr;
}
@@ -117,5 +115,4 @@ std::unique_ptr<Printer> RecommendedPrinterToPrinter(
return printer;
}
-} // namespace printing
} // namespace chromeos
« no previous file with comments | « chromeos/printing/printer_translator.h ('k') | chromeos/printing/printer_translator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698