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

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

Issue 2772343003: Android: Remove GetApplicationContext part 1 (Closed)
Patch Set: rebase Created 3 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 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.init; 5 package org.chromium.chrome.browser.init;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.content.Context; 8 import android.content.Context;
9 import android.view.View; 9 import android.view.View;
10 10
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 }); 227 });
228 228
229 DeferredStartupHandler.getInstance().addDeferredTask(new Runnable() { 229 DeferredStartupHandler.getInstance().addDeferredTask(new Runnable() {
230 @Override 230 @Override
231 public void run() { 231 public void run() {
232 // Add process check to diagnose http://crbug.com/606309. Remove this after the bug 232 // Add process check to diagnose http://crbug.com/606309. Remove this after the bug
233 // is fixed. 233 // is fixed.
234 assert !CommandLine.getInstance().hasSwitch(ContentSwitches.SWIT CH_PROCESS_TYPE); 234 assert !CommandLine.getInstance().hasSwitch(ContentSwitches.SWIT CH_PROCESS_TYPE);
235 if (!CommandLine.getInstance().hasSwitch(ContentSwitches.SWITCH_ PROCESS_TYPE)) { 235 if (!CommandLine.getInstance().hasSwitch(ContentSwitches.SWITCH_ PROCESS_TYPE)) {
236 DownloadController.setDownloadNotificationService( 236 DownloadController.setDownloadNotificationService(
237 DownloadManagerService.getDownloadManagerService(app lication)); 237 DownloadManagerService.getDownloadManagerService());
238 } 238 }
239 239
240 if (ApiCompatibilityUtils.isPrintingSupported()) { 240 if (ApiCompatibilityUtils.isPrintingSupported()) {
241 String errorText = application.getResources().getString( 241 String errorText = application.getResources().getString(
242 R.string.error_printing_failed); 242 R.string.error_printing_failed);
243 PrintingControllerImpl.create(new PrintDocumentAdapterWrappe r(), errorText); 243 PrintingControllerImpl.create(new PrintDocumentAdapterWrappe r(), errorText);
244 } 244 }
245 } 245 }
246 }); 246 });
247 } 247 }
248 } 248 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698