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

Unified Diff: chrome/browser/chromeos/printer_detector/printer_detector_factory.cc

Issue 2475813002: Enable Native CUPS printing on Chrome OS. (Closed)
Patch Set: fix histogram entry Created 3 years, 9 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 | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/printer_detector/printer_detector_factory.cc
diff --git a/chrome/browser/chromeos/printer_detector/printer_detector_factory.cc b/chrome/browser/chromeos/printer_detector/printer_detector_factory.cc
index 4008a07eb05ef8f68f83a4f985d69b458ebf62f1..c50216e475998297e2bad6256bac04653590bf5d 100644
--- a/chrome/browser/chromeos/printer_detector/printer_detector_factory.cc
+++ b/chrome/browser/chromeos/printer_detector/printer_detector_factory.cc
@@ -45,8 +45,8 @@ PrinterDetectorFactory::~PrinterDetectorFactory() {
KeyedService* PrinterDetectorFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- ::switches::kEnableNativeCups)) {
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ ::switches::kDisableNativeCups)) {
return PrinterDetector::CreateCups(Profile::FromBrowserContext(context))
Carlson 2017/03/31 21:45:52 Probably slightly better to flip the contents of t
skau 2017/03/31 23:29:09 Done.
.release();
} else {
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698