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

Unified Diff: chrome/browser/chromeos/printing/fake_printer_discoverer.h

Issue 2790603003: Make CUPS USB printing play better with the settings page. This change does several things: (Closed)
Patch Set: stop latching PrintersManager, add comments Created 3 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/chromeos/printing/fake_printer_discoverer.h
diff --git a/chrome/browser/chromeos/printing/fake_printer_discoverer.h b/chrome/browser/chromeos/printing/fake_printer_discoverer.h
deleted file mode 100644
index d7f857eb73322e5dc0d2f0929170c10e512f50f3..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/printing/fake_printer_discoverer.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_PRINTING_FAKE_PRINTER_DISCOVERER_H_
-#define CHROME_BROWSER_CHROMEOS_PRINTING_FAKE_PRINTER_DISCOVERER_H_
-
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "chrome/browser/chromeos/printing/printer_discoverer.h"
-#include "chromeos/printing/printer_configuration.h"
-
-namespace chromeos {
-
-class FakePrinterDiscoverer : public PrinterDiscoverer {
- public:
- FakePrinterDiscoverer();
- ~FakePrinterDiscoverer() override;
-
- bool StartDiscovery() override;
- bool StopDiscovery() override;
- void AddObserver(PrinterDiscoverer::Observer* observer) override;
- void RemoveObserver(PrinterDiscoverer::Observer* observer) override;
-
- private:
- void EmitPrinters(size_t start, size_t end);
-
- std::vector<chromeos::Printer> printers_;
- bool discovery_running_;
- std::vector<PrinterDiscoverer::Observer*> observers_;
-
- base::WeakPtrFactory<FakePrinterDiscoverer> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(FakePrinterDiscoverer);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_PRINTING_FAKE_PRINTER_DISCOVERER_H_

Powered by Google App Engine
This is Rietveld 408576698