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

Unified Diff: net/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java

Issue 230443005: Move cronet from //net into //components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to r262794 Created 6 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 side-by-side diff with in-line comments
Download patch
Index: net/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java
diff --git a/net/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java b/net/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java
deleted file mode 100644
index e1416e1704859ee304da25b637134f06ad672336..0000000000000000000000000000000000000000
--- a/net/cronet/android/java/src/org/chromium/net/ChromiumUrlRequestContext.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.net;
-
-import android.content.Context;
-import android.util.Log;
-
-/**
- * Provides context for the native HTTP operations.
- */
-public class ChromiumUrlRequestContext extends UrlRequestContext {
- private static final Object sLock = new Object();
-
- private static final String TAG = "ChromiumNetwork";
-
- private static ChromiumUrlRequestContext sInstance;
-
- private ChromiumUrlRequestContext(Context context, String userAgent,
- int loggingLevel) {
- super(context, userAgent, loggingLevel);
- }
-
- public static ChromiumUrlRequestContext getInstance(
- Context context) {
- synchronized (sLock) {
- if (sInstance == null) {
- int loggingLevel;
- if (Log.isLoggable(TAG, Log.VERBOSE)) {
- loggingLevel = LOG_VERBOSE;
- } else if (Log.isLoggable(TAG, Log.DEBUG)) {
- loggingLevel = LOG_DEBUG;
- } else {
- loggingLevel = LOG_NONE;
- }
- sInstance = new ChromiumUrlRequestContext(
- context.getApplicationContext(),
- UserAgent.from(context),
- loggingLevel);
- }
- }
- return sInstance;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698