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

Unified Diff: chrome/browser/android/blimp/blimp_client_context_factory_android.cc

Issue 2623023002: Remove //chrome as an embedder of blimp. (Closed)
Patch Set: One more rebase for good measure Created 3 years, 11 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: chrome/browser/android/blimp/blimp_client_context_factory_android.cc
diff --git a/chrome/browser/android/blimp/blimp_client_context_factory_android.cc b/chrome/browser/android/blimp/blimp_client_context_factory_android.cc
deleted file mode 100644
index a98137c265c01dccb63c017e29c1d8485a3ed104..0000000000000000000000000000000000000000
--- a/chrome/browser/android/blimp/blimp_client_context_factory_android.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2016 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.
-
-#include "chrome/browser/android/blimp/blimp_client_context_factory_android.h"
-
-#include "base/android/jni_android.h"
-#include "base/android/scoped_java_ref.h"
-#include "blimp/client/public/blimp_client_context.h"
-#include "chrome/browser/android/blimp/blimp_client_context_factory.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_android.h"
-#include "jni/BlimpClientContextFactory_jni.h"
-
-using base::android::JavaParamRef;
-
-namespace content {
-class BrowserContext;
-}
-
-static base::android::ScopedJavaLocalRef<jobject>
-GetBlimpClientContextForProfile(JNIEnv* env,
- const JavaParamRef<jclass>& clazz,
- const JavaParamRef<jobject>& jprofile) {
- Profile* profile = ProfileAndroid::FromProfileAndroid(jprofile);
- DCHECK(profile);
- return blimp::client::BlimpClientContext::GetJavaObject(
- BlimpClientContextFactory::GetInstance()->GetForBrowserContext(profile));
-}
-
-bool RegisterBlimpClientContextFactoryJni(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}

Powered by Google App Engine
This is Rietveld 408576698