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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.ntp.cards; 5 package org.chromium.chrome.browser.ntp.cards;
6 6
7 import org.chromium.base.Callback; 7 import org.chromium.base.Callback;
8 import org.chromium.base.Log; 8 import org.chromium.base.Log;
9 import org.chromium.base.VisibleForTesting; 9 import org.chromium.base.VisibleForTesting;
10 import org.chromium.chrome.browser.ntp.NewTabPage.DestructionObserver; 10 import org.chromium.chrome.browser.ntp.NewTabPage.DestructionObserver;
(...skipping 25 matching lines...) Expand all
36 36
37 // Children 37 // Children
38 private final SectionHeader mHeader; 38 private final SectionHeader mHeader;
39 private final SuggestionsList mSuggestionsList; 39 private final SuggestionsList mSuggestionsList;
40 private final StatusItem mStatus; 40 private final StatusItem mStatus;
41 private final ActionItem mMoreButton; 41 private final ActionItem mMoreButton;
42 private final ProgressItem mProgressIndicator; 42 private final ProgressItem mProgressIndicator;
43 43
44 private final List<TreeNode> mChildren; 44 private final List<TreeNode> mChildren;
45 45
46 private boolean mIsNtpDestroyed = false; 46 private boolean mIsNtpDestroyed;
47 47
48 public SuggestionsSection(NodeParent parent, NewTabPageManager manager, 48 public SuggestionsSection(NodeParent parent, NewTabPageManager manager,
49 OfflinePageBridge offlinePageBridge, SuggestionsCategoryInfo info) { 49 OfflinePageBridge offlinePageBridge, SuggestionsCategoryInfo info) {
50 super(parent); 50 super(parent);
51 mCategoryInfo = info; 51 mCategoryInfo = info;
52 mOfflinePageBridge = offlinePageBridge; 52 mOfflinePageBridge = offlinePageBridge;
53 53
54 mHeader = new SectionHeader(info.getTitle()); 54 mHeader = new SectionHeader(info.getTitle());
55 mSuggestionsList = new SuggestionsList(this, info); 55 mSuggestionsList = new SuggestionsList(this, info);
56 mStatus = StatusItem.createNoSuggestionsItem(this); 56 mStatus = StatusItem.createNoSuggestionsItem(this);
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 @VisibleForTesting 332 @VisibleForTesting
333 ActionItem getActionItem() { 333 ActionItem getActionItem() {
334 return mMoreButton; 334 return mMoreButton;
335 } 335 }
336 336
337 @VisibleForTesting 337 @VisibleForTesting
338 StatusItem getStatusItem() { 338 StatusItem getStatusItem() {
339 return mStatus; 339 return mStatus;
340 } 340 }
341 } 341 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698