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

Unified Diff: printing/android/java/src/org/chromium/printing/PrintingControllerFactory.java

Issue 63483007: Refactor Android printing code to make it more testable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add license to PrintingControllerFactory Created 7 years, 1 month 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: printing/android/java/src/org/chromium/printing/PrintingControllerFactory.java
diff --git a/printing/android/java/src/org/chromium/printing/PrintingControllerFactory.java b/printing/android/java/src/org/chromium/printing/PrintingControllerFactory.java
deleted file mode 100644
index 78c67db5a5eab76c1341bc57f081ff677ce9971d..0000000000000000000000000000000000000000
--- a/printing/android/java/src/org/chromium/printing/PrintingControllerFactory.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2013 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.
-
-package org.chromium.printing;
-
-import org.chromium.base.ThreadUtils;
-
-import android.content.Context;
-
-public class PrintingControllerFactory {
- /** The singleton instance for this class. */
- private static PrintingController sInstance;
-
- private PrintingControllerFactory() {} // Static factory
-
- /**
- * Creates a controller for handling printing with the framework.
- *
- * The controller is a singleton, since there can be only one printing action at any time.
- *
- * @param context The application context.
- * @return The resulting PrintingController.
- */
- public static PrintingController getPrintingController(
- Context context) {
- ThreadUtils.assertOnUiThread();
- if (sInstance == null) {
- sInstance = new PrintingControllerImpl(context);
- }
- return sInstance;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698