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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageOpenStorageSettingsDialog.java

Issue 1894703002: [Offline pages] Removing offline pages from Bookmarks UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Marking more methods as visible for testing Created 4 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/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageOpenStorageSettingsDialog.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageOpenStorageSettingsDialog.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageOpenStorageSettingsDialog.java
deleted file mode 100644
index b5b7172b32c5bd1f3c5caa2035a8a09f1ddf829d..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageOpenStorageSettingsDialog.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.offlinepages;
-
-import android.content.Context;
-import android.content.DialogInterface;
-import android.content.DialogInterface.OnClickListener;
-import android.content.Intent;
-import android.provider.Settings;
-import android.support.v7.app.AlertDialog;
-
-import org.chromium.chrome.R;
-
-/**
- * A dialog that prompts the user to open the Storage page in Android settings.
- *
- * Shown when an offline page can't be saved because the device storage is almost full.
- */
-public class OfflinePageOpenStorageSettingsDialog {
- public static void showDialog(final Context context) {
- OnClickListener listener = new OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int id) {
- if (id == AlertDialog.BUTTON_NEGATIVE) {
- dialog.cancel();
- return;
- }
- context.startActivity(new Intent(Settings.ACTION_MEMORY_CARD_SETTINGS));
- }
- };
-
- AlertDialog.Builder builder =
- new AlertDialog.Builder(context, R.style.AlertDialogTheme)
- .setTitle(OfflinePageUtils.getStringId(
- R.string.offline_pages_free_up_space_title))
- .setPositiveButton(R.string.offline_pages_view_button, listener)
- .setNegativeButton(R.string.cancel, listener)
- .setMessage(OfflinePageUtils.getStringId(
- R.string.offline_pages_open_storage_settings_dialog_text));
- builder.create().show();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698