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

Unified Diff: device/time_zone_monitor/time_zone_monitor_linux.cc

Issue 2353283002: [TimeZoneMonitor] Decouple //content/browser/time_zone_monitor* to //device/. (Closed)
Patch Set: Do not set output_name in gn Created 4 years, 3 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_linux.cc
diff --git a/content/browser/time_zone_monitor_linux.cc b/device/time_zone_monitor/time_zone_monitor_linux.cc
similarity index 96%
rename from content/browser/time_zone_monitor_linux.cc
rename to device/time_zone_monitor/time_zone_monitor_linux.cc
index c8d7bdaf854a37165be4b72880fc0afb3b098f14..6d560dd76d648106b3ac78ae951206ad4475dac7 100644
--- a/content/browser/time_zone_monitor_linux.cc
+++ b/device/time_zone_monitor/time_zone_monitor_linux.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/time_zone_monitor.h"
+#include "device/time_zone_monitor/time_zone_monitor.h"
#include <stddef.h>
#include <stdlib.h>
@@ -22,7 +22,7 @@
#if !defined(OS_CHROMEOS)
-namespace content {
+namespace device {
namespace {
class TimeZoneMonitorLinuxImpl;
@@ -92,16 +92,13 @@ class TimeZoneMonitorLinuxImpl
// false positives are harmless, assuming the false positive rate is
// reasonable.
const char* const kFilesToWatch[] = {
- "/etc/localtime",
- "/etc/timezone",
- "/etc/TZ",
+ "/etc/localtime", "/etc/timezone", "/etc/TZ",
};
for (size_t index = 0; index < arraysize(kFilesToWatch); ++index) {
file_path_watchers_.push_back(new base::FilePathWatcher());
file_path_watchers_.back()->Watch(
- base::FilePath(kFilesToWatch[index]),
- false,
+ base::FilePath(kFilesToWatch[index]), false,
base::Bind(&TimeZoneMonitorLinuxImpl::OnTimeZoneFileChanged, this));
}
}
@@ -171,6 +168,6 @@ std::unique_ptr<TimeZoneMonitor> TimeZoneMonitor::Create(
new TimeZoneMonitorLinux(file_task_runner));
}
-} // namespace content
+} // namespace device
#endif // !OS_CHROMEOS
« no previous file with comments | « device/time_zone_monitor/time_zone_monitor_export.h ('k') | device/time_zone_monitor/time_zone_monitor_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698