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

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

Issue 2754363004: OfflineContentProvider changes to start service (Closed)
Patch Set: 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 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; 5 package org.chromium.chrome.browser;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.app.Activity; 9 import android.app.Activity;
10 import android.app.SearchManager; 10 import android.app.SearchManager;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 import org.chromium.chrome.browser.compositor.layouts.content.TabContentManager; 69 import org.chromium.chrome.browser.compositor.layouts.content.TabContentManager;
70 import org.chromium.chrome.browser.contextualsearch.ContextualSearchFieldTrial; 70 import org.chromium.chrome.browser.contextualsearch.ContextualSearchFieldTrial;
71 import org.chromium.chrome.browser.contextualsearch.ContextualSearchManager; 71 import org.chromium.chrome.browser.contextualsearch.ContextualSearchManager;
72 import org.chromium.chrome.browser.contextualsearch.ContextualSearchManager.Cont extualSearchTabPromotionDelegate; 72 import org.chromium.chrome.browser.contextualsearch.ContextualSearchManager.Cont extualSearchTabPromotionDelegate;
73 import org.chromium.chrome.browser.datausage.DataUseTabUIManager; 73 import org.chromium.chrome.browser.datausage.DataUseTabUIManager;
74 import org.chromium.chrome.browser.device.DeviceClassManager; 74 import org.chromium.chrome.browser.device.DeviceClassManager;
75 import org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView; 75 import org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView;
76 import org.chromium.chrome.browser.dom_distiller.ReaderModeManager; 76 import org.chromium.chrome.browser.dom_distiller.ReaderModeManager;
77 import org.chromium.chrome.browser.download.DownloadManagerService; 77 import org.chromium.chrome.browser.download.DownloadManagerService;
78 import org.chromium.chrome.browser.download.DownloadUtils; 78 import org.chromium.chrome.browser.download.DownloadUtils;
79 import org.chromium.chrome.browser.download.items.OfflineContentAggregatorNotifi erFactory;
79 import org.chromium.chrome.browser.firstrun.ForcedSigninProcessor; 80 import org.chromium.chrome.browser.firstrun.ForcedSigninProcessor;
80 import org.chromium.chrome.browser.fullscreen.ChromeFullscreenManager; 81 import org.chromium.chrome.browser.fullscreen.ChromeFullscreenManager;
81 import org.chromium.chrome.browser.gsa.ContextReporter; 82 import org.chromium.chrome.browser.gsa.ContextReporter;
82 import org.chromium.chrome.browser.gsa.GSAAccountChangeListener; 83 import org.chromium.chrome.browser.gsa.GSAAccountChangeListener;
83 import org.chromium.chrome.browser.gsa.GSAState; 84 import org.chromium.chrome.browser.gsa.GSAState;
84 import org.chromium.chrome.browser.help.HelpAndFeedback; 85 import org.chromium.chrome.browser.help.HelpAndFeedback;
85 import org.chromium.chrome.browser.history.HistoryManagerUtils; 86 import org.chromium.chrome.browser.history.HistoryManagerUtils;
86 import org.chromium.chrome.browser.infobar.InfoBarContainer; 87 import org.chromium.chrome.browser.infobar.InfoBarContainer;
87 import org.chromium.chrome.browser.init.AsyncInitializationActivity; 88 import org.chromium.chrome.browser.init.AsyncInitializationActivity;
88 import org.chromium.chrome.browser.media.VideoPersister; 89 import org.chromium.chrome.browser.media.VideoPersister;
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 }); 1162 });
1162 } 1163 }
1163 1164
1164 mRemoveWindowBackgroundDone = true; 1165 mRemoveWindowBackgroundDone = true;
1165 } 1166 }
1166 1167
1167 @Override 1168 @Override
1168 public void finishNativeInitialization() { 1169 public void finishNativeInitialization() {
1169 mNativeInitialized = true; 1170 mNativeInitialized = true;
1170 maybeRemoveWindowBackground(); 1171 maybeRemoveWindowBackground();
1172 OfflineContentAggregatorNotifierFactory.create(getApplicationContext());
gone 2017/03/20 19:03:35 ContextUtils.getApplicationContext()
David Trainor- moved to gerrit 2017/03/25 03:31:12 Hmm we use getApplicationContext() throughout this
1171 DownloadManagerService.getDownloadManagerService( 1173 DownloadManagerService.getDownloadManagerService(
1172 getApplicationContext()).onActivityLaunched(); 1174 getApplicationContext()).onActivityLaunched();
1173 1175
1174 VrShellDelegate.onNativeLibraryAvailable(); 1176 VrShellDelegate.onNativeLibraryAvailable();
1175 super.finishNativeInitialization(); 1177 super.finishNativeInitialization();
1176 } 1178 }
1177 1179
1178 /** 1180 /**
1179 * Called when the accessibility status of this device changes. This might be triggered by 1181 * Called when the accessibility status of this device changes. This might be triggered by
1180 * touch exploration or general accessibility status updates. It is an aggr egate of two other 1182 * touch exploration or general accessibility status updates. It is an aggr egate of two other
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
2115 * draw over VR contents should be hidden in this call. 2117 * draw over VR contents should be hidden in this call.
2116 */ 2118 */
2117 public void onEnterVR() {} 2119 public void onEnterVR() {}
2118 2120
2119 /** 2121 /**
2120 * Called when VR mode using this activity is exited. Any state set for VR s hould be restored 2122 * Called when VR mode using this activity is exited. Any state set for VR s hould be restored
2121 * in this call, including showing 2D UI that was hidden. 2123 * in this call, including showing 2D UI that was hidden.
2122 */ 2124 */
2123 public void onExitVR() {} 2125 public void onExitVR() {}
2124 } 2126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698