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

Unified Diff: net/cronet/android/sample/src/org/chromium/cronet_sample_apk/CronetSampleApplication.java

Issue 145213003: Initial upload of cronet for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed copyright year on sample code back to 2012 Created 6 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 side-by-side diff with in-line comments
Download patch
Index: net/cronet/android/sample/src/org/chromium/cronet_sample_apk/CronetSampleApplication.java
diff --git a/net/cronet/android/sample/src/org/chromium/cronet_sample_apk/CronetSampleApplication.java b/net/cronet/android/sample/src/org/chromium/cronet_sample_apk/CronetSampleApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..0cc1443ac9b145796093b1280542a8fb0e4d67da
--- /dev/null
+++ b/net/cronet/android/sample/src/org/chromium/cronet_sample_apk/CronetSampleApplication.java
@@ -0,0 +1,30 @@
+// 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;
+
+import org.chromium.base.BaseChromiumApplication;
+import org.chromium.base.PathUtils;
+
+/**
+ * Application for managing the Cronet Sample.
+ */
+public class CronetSampleApplication extends BaseChromiumApplication {
+ private static final String TAG = "CronetSampleApplication";
+ private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "cronet_sample";
+
+ @Override
+ public void onCreate() {
+ super.onCreate();
+ initializeApplicationParameters();
+ }
+
+ public static void initializeApplicationParameters() {
+ PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
+ Log.i(TAG,
+ "CronetSampleApplication.initializeApplicationParameters() success.");
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698