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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/history/HistoryPage.java

Issue 2751583002: 🏡 Show correct BottomSheetContent toolbar when contents swapped (Closed)
Patch Set: Remove duplicate "and" Created 3 years, 9 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 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.history; 5 package org.chromium.chrome.browser.history;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.view.View; 8 import android.view.View;
9 9
10 import org.chromium.chrome.R; 10 import org.chromium.chrome.R;
(...skipping 13 matching lines...) Expand all
24 * @param activity The {@link Activity} used to get context and instantiate the 24 * @param activity The {@link Activity} used to get context and instantiate the
25 * {@link HistoryManager}. 25 * {@link HistoryManager}.
26 * @param host A NativePageHost to load URLs. 26 * @param host A NativePageHost to load URLs.
27 */ 27 */
28 public HistoryPage(Activity activity, NativePageHost host) { 28 public HistoryPage(Activity activity, NativePageHost host) {
29 super(activity, host); 29 super(activity, host);
30 } 30 }
31 31
32 @Override 32 @Override
33 protected void initialize(Activity activity, final NativePageHost host) { 33 protected void initialize(Activity activity, final NativePageHost host) {
34 mHistoryManager = new HistoryManager(activity, this); 34 mHistoryManager = new HistoryManager(activity, false);
35 mTitle = activity.getString(R.string.menu_history); 35 mTitle = activity.getString(R.string.menu_history);
36 } 36 }
37 37
38 @Override 38 @Override
39 public View getView() { 39 public View getView() {
40 return mHistoryManager.getView(); 40 return mHistoryManager.getView();
41 } 41 }
42 42
43 @Override 43 @Override
44 public String getTitle() { 44 public String getTitle() {
45 return mTitle; 45 return mTitle;
46 } 46 }
47 47
48 @Override 48 @Override
49 public String getHost() { 49 public String getHost() {
50 return UrlConstants.HISTORY_HOST; 50 return UrlConstants.HISTORY_HOST;
51 } 51 }
52 52
53 @Override 53 @Override
54 public void destroy() { 54 public void destroy() {
55 mHistoryManager.onDestroyed(); 55 mHistoryManager.onDestroyed();
56 mHistoryManager = null; 56 mHistoryManager = null;
57 super.destroy(); 57 super.destroy();
58 } 58 }
59 } 59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698