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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/child_accounts/ChildAccountFeedbackReporter.java

Issue 1143313006: Add an activity that allows whitelisted applications to clear all data in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 5 years, 6 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/child_accounts/ChildAccountFeedbackReporter.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/child_accounts/ChildAccountFeedbackReporter.java b/chrome/android/java/src/org/chromium/chrome/browser/child_accounts/ChildAccountFeedbackReporter.java
deleted file mode 100644
index 20b1439b1cf83a0827ffb80b8e2b068b9f54a521..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/child_accounts/ChildAccountFeedbackReporter.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2015 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.child_accounts;
-
-import android.app.Activity;
-
-import org.chromium.base.CalledByNative;
-import org.chromium.base.ThreadUtils;
-import org.chromium.chrome.browser.ChromiumApplication;
-import org.chromium.chrome.browser.feedback.FeedbackCollector;
-import org.chromium.chrome.browser.feedback.FeedbackReporter;
-import org.chromium.chrome.browser.profiles.Profile;
-import org.chromium.ui.base.WindowAndroid;
-
-/**
- * Java implementation of ChildAccountFeedbackReporterAndroid.
- */
-public final class ChildAccountFeedbackReporter {
- private static FeedbackReporter sFeedbackReporter;
-
- public static void reportFeedback(Activity activity,
- String description,
- String url) {
- ThreadUtils.assertOnUiThread();
- if (sFeedbackReporter == null) {
- ChromiumApplication application = (ChromiumApplication) activity.getApplication();
- sFeedbackReporter = application.createFeedbackReporter();
- }
- FeedbackCollector collector = FeedbackCollector.create(Profile.getLastUsedProfile(), url);
- collector.setDescription(description);
- sFeedbackReporter.reportFeedback(activity, collector);
- }
-
- @CalledByNative
- public static void reportFeedbackWithWindow(WindowAndroid window,
- String description,
- String url) {
- reportFeedback(window.getActivity().get(), description, url);
- }
-
- private ChildAccountFeedbackReporter() {}
-}

Powered by Google App Engine
This is Rietveld 408576698