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

Unified Diff: device/time_zone_monitor/time_zone_monitor_android.cc

Issue 2690963002: [DeviceService] Move //device/time_zone_monitor to //services/device (Closed)
Patch Set: Enable device service to register JNI Created 3 years, 10 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: device/time_zone_monitor/time_zone_monitor_android.cc
diff --git a/device/time_zone_monitor/time_zone_monitor_android.cc b/device/time_zone_monitor/time_zone_monitor_android.cc
deleted file mode 100644
index 0d1ea625340c4944cf8020a39ba84a4198c9bfe8..0000000000000000000000000000000000000000
--- a/device/time_zone_monitor/time_zone_monitor_android.cc
+++ /dev/null
@@ -1,43 +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.
-
-#include "device/time_zone_monitor/time_zone_monitor_android.h"
-
-#include "base/android/context_utils.h"
-#include "base/android/jni_android.h"
-#include "jni/TimeZoneMonitor_jni.h"
-
-using base::android::JavaParamRef;
-
-namespace device {
-
-TimeZoneMonitorAndroid::TimeZoneMonitorAndroid() : TimeZoneMonitor() {
- impl_.Reset(
- Java_TimeZoneMonitor_getInstance(base::android::AttachCurrentThread(),
- base::android::GetApplicationContext(),
- reinterpret_cast<intptr_t>(this)));
-}
-
-TimeZoneMonitorAndroid::~TimeZoneMonitorAndroid() {
- Java_TimeZoneMonitor_stop(base::android::AttachCurrentThread(), impl_);
-}
-
-// static
-bool TimeZoneMonitorAndroid::Register(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-void TimeZoneMonitorAndroid::TimeZoneChangedFromJava(
- JNIEnv* env,
- const JavaParamRef<jobject>& caller) {
- NotifyClients();
-}
-
-// static
-std::unique_ptr<TimeZoneMonitor> TimeZoneMonitor::Create(
- scoped_refptr<base::SequencedTaskRunner> file_task_runner) {
- return std::unique_ptr<TimeZoneMonitor>(new TimeZoneMonitorAndroid());
-}
-
-} // namespace device
« no previous file with comments | « device/time_zone_monitor/time_zone_monitor_android.h ('k') | device/time_zone_monitor/time_zone_monitor_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698