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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.preferences.website; 5 package org.chromium.chrome.browser.preferences.website;
6 6
7 import android.content.DialogInterface; 7 import android.content.DialogInterface;
8 import android.content.res.Resources; 8 import android.content.res.Resources;
9 import android.os.Bundle; 9 import android.os.Bundle;
10 import android.preference.Preference; 10 import android.preference.Preference;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 private TextView mEmptyView; 71 private TextView mEmptyView;
72 // The view for searching the list of items. 72 // The view for searching the list of items.
73 private SearchView mSearchView; 73 private SearchView mSearchView;
74 // The clear button displayed in the Storage view. 74 // The clear button displayed in the Storage view.
75 private Button mClearButton; 75 private Button mClearButton;
76 // The Site Settings Category we are showing. 76 // The Site Settings Category we are showing.
77 private SiteSettingsCategory mCategory; 77 private SiteSettingsCategory mCategory;
78 // If not blank, represents a substring to use to search for site names. 78 // If not blank, represents a substring to use to search for site names.
79 private String mSearch = ""; 79 private String mSearch = "";
80 // Whether to group by allowed/blocked list. 80 // Whether to group by allowed/blocked list.
81 private boolean mGroupByAllowBlock = false; 81 private boolean mGroupByAllowBlock;
82 // Whether the Blocked list should be shown expanded. 82 // Whether the Blocked list should be shown expanded.
83 private boolean mBlockListExpanded = false; 83 private boolean mBlockListExpanded;
84 // Whether the Allowed list should be shown expanded. 84 // Whether the Allowed list should be shown expanded.
85 private boolean mAllowListExpanded = true; 85 private boolean mAllowListExpanded = true;
86 // Whether this is the first time this screen is shown. 86 // Whether this is the first time this screen is shown.
87 private boolean mIsInitialRun = true; 87 private boolean mIsInitialRun = true;
88 // The number of sites that are on the Allowed list. 88 // The number of sites that are on the Allowed list.
89 private int mAllowedSiteCount = 0; 89 private int mAllowedSiteCount;
90 // The websites that are currently displayed to the user. 90 // The websites that are currently displayed to the user.
91 private List<WebsitePreference> mWebsites; 91 private List<WebsitePreference> mWebsites;
92 92
93 // Keys for individual preferences. 93 // Keys for individual preferences.
94 public static final String READ_WRITE_TOGGLE_KEY = "read_write_toggle"; 94 public static final String READ_WRITE_TOGGLE_KEY = "read_write_toggle";
95 public static final String THIRD_PARTY_COOKIES_TOGGLE_KEY = "third_party_coo kies"; 95 public static final String THIRD_PARTY_COOKIES_TOGGLE_KEY = "third_party_coo kies";
96 public static final String NOTIFICATIONS_VIBRATE_TOGGLE_KEY = "notifications _vibrate"; 96 public static final String NOTIFICATIONS_VIBRATE_TOGGLE_KEY = "notifications _vibrate";
97 public static final String EXPLAIN_PROTECTED_MEDIA_KEY = "protected_content_ learn_more"; 97 public static final String EXPLAIN_PROTECTED_MEDIA_KEY = "protected_content_ learn_more";
98 private static final String ADD_EXCEPTION_KEY = "add_exception"; 98 private static final String ADD_EXCEPTION_KEY = "add_exception";
99 // Keys for Allowed/Blocked preference groups/headers. 99 // Keys for Allowed/Blocked preference groups/headers.
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 MediaDrmCredentialManager.resetCredentials(new MediaDrmCredentialManager Callback() { 744 MediaDrmCredentialManager.resetCredentials(new MediaDrmCredentialManager Callback() {
745 @Override 745 @Override
746 public void onCredentialResetFinished(boolean succeeded) { 746 public void onCredentialResetFinished(boolean succeeded) {
747 if (succeeded) return; 747 if (succeeded) return;
748 String message = getString(R.string.protected_content_reset_fail ed); 748 String message = getString(R.string.protected_content_reset_fail ed);
749 Toast.makeText(getActivity(), message, Toast.LENGTH_SHORT).show( ); 749 Toast.makeText(getActivity(), message, Toast.LENGTH_SHORT).show( );
750 } 750 }
751 }); 751 });
752 } 752 }
753 } 753 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698