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

Unified Diff: chrome/browser/interests/android/interests_service.h

Issue 2122993003: Remove unused Interests code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot unit test target. Created 4 years, 5 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 | « chrome/browser/interests/OWNERS ('k') | chrome/browser/interests/android/interests_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/interests/android/interests_service.h
diff --git a/chrome/browser/interests/android/interests_service.h b/chrome/browser/interests/android/interests_service.h
deleted file mode 100644
index 888942af1b6f24f9bf96bd5ec1e752b115951114..0000000000000000000000000000000000000000
--- a/chrome/browser/interests/android/interests_service.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2015 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.
-
-#ifndef CHROME_BROWSER_INTERESTS_ANDROID_INTERESTS_SERVICE_H_
-#define CHROME_BROWSER_INTERESTS_ANDROID_INTERESTS_SERVICE_H_
-
-#include <jni.h>
-
-#include <memory>
-
-#include "base/android/scoped_java_ref.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "chrome/browser/interests/interests_fetcher.h"
-
-class Profile;
-
-// Provides a list of user interests to Java
-class InterestsService {
- public:
- explicit InterestsService(Profile* profile);
- virtual ~InterestsService();
-
- void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
- static bool Register(JNIEnv* env);
- void GetInterests(JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj,
- const base::android::JavaParamRef<jobject>& j_callback);
-
- private:
- void OnObtainedInterests(
- std::unique_ptr<InterestsFetcher> fetcher,
- const base::android::ScopedJavaGlobalRef<jobject>& j_callback,
- std::unique_ptr<std::vector<InterestsFetcher::Interest>> interests);
-
- Profile* profile_;
-
- base::WeakPtrFactory<InterestsService> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(InterestsService);
-};
-
-#endif // CHROME_BROWSER_INTERESTS_ANDROID_INTERESTS_SERVICE_H_
« no previous file with comments | « chrome/browser/interests/OWNERS ('k') | chrome/browser/interests/android/interests_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698