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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/shapedetection/TextDetectionFactory.java

Issue 2650583004: ShapeDetection: Move factory method to static nested class (Closed)
Patch Set: Created 3 years, 11 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/android/java/src/org/chromium/chrome/browser/shapedetection/TextDetectionFactory.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/TextDetectionFactory.java b/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/TextDetectionFactory.java
deleted file mode 100644
index ee410644a1f55d0d9279bddc98da83fa4ee85390..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/shapedetection/TextDetectionFactory.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2017 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.chrome.browser.shapedetection;
-
-import android.content.Context;
-
-import org.chromium.services.service_manager.InterfaceFactory;
-import org.chromium.shape_detection.mojom.TextDetection;
-
-/**
- * Factory class registered to create TextDetections upon request.
- */
-public class TextDetectionFactory implements InterfaceFactory<TextDetection> {
- private final Context mContext;
-
- public TextDetectionFactory(Context context) {
- mContext = context;
- }
-
- @Override
- public TextDetection createImpl() {
- return new TextDetectionImpl(mContext);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698