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

Unified Diff: components/cronet/android/sample/src/org/chromium/cronet_sample_apk/LibraryLoader.java

Issue 250683002: Refactor cronet library loader. Move java LibraryLoader into cronet.jar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « components/cronet/android/sample/src/org/chromium/cronet_sample_apk/CronetSampleActivity.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/sample/src/org/chromium/cronet_sample_apk/LibraryLoader.java
diff --git a/components/cronet/android/sample/src/org/chromium/cronet_sample_apk/LibraryLoader.java b/components/cronet/android/sample/src/org/chromium/cronet_sample_apk/LibraryLoader.java
deleted file mode 100644
index 60caa20e85997932a93d8be30729f916cf52df55..0000000000000000000000000000000000000000
--- a/components/cronet/android/sample/src/org/chromium/cronet_sample_apk/LibraryLoader.java
+++ /dev/null
@@ -1,24 +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.cronet_sample_apk;
-
-import android.util.Log;
-
-/**
- * Cronet Library Loader.
- */
-public class LibraryLoader {
- private static final String TAG = "LibraryLoader";
-
- private static Boolean sInitialized = false;
-
- public static void ensureInitialized() throws UnsatisfiedLinkError {
- if (sInitialized)
- return;
- sInitialized = true;
- System.loadLibrary("cronet");
- Log.i(TAG, "libcronet initialization success.");
- }
-}
« no previous file with comments | « components/cronet/android/sample/src/org/chromium/cronet_sample_apk/CronetSampleActivity.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698