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

Unified Diff: components/offline_pages/core/background/device_conditions.h

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: update Created 4 years, 1 month 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: components/offline_pages/core/background/device_conditions.h
diff --git a/components/offline_pages/background/device_conditions.h b/components/offline_pages/core/background/device_conditions.h
similarity index 83%
rename from components/offline_pages/background/device_conditions.h
rename to components/offline_pages/core/background/device_conditions.h
index b96306a4d4b949cddb7cfba34f325b7ac76c45ae..25245a594e56949ecc184d4d45724c6d93de4092 100644
--- a/components/offline_pages/background/device_conditions.h
+++ b/components/offline_pages/core/background/device_conditions.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_DEVICE_CONDITIONS_H_
-#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_DEVICE_CONDITIONS_H_
+#ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_DEVICE_CONDITIONS_H_
+#define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_DEVICE_CONDITIONS_H_
#include "net/base/network_change_notifier.h"
@@ -21,7 +21,8 @@ class DeviceConditions {
net_connection_type_(net_connection_type) {}
DeviceConditions()
- : power_connected_(true), battery_percentage_(75),
+ : power_connected_(true),
+ battery_percentage_(75),
net_connection_type_(net::NetworkChangeNotifier::CONNECTION_WIFI) {}
// Returns whether power is connected.
@@ -45,4 +46,4 @@ class DeviceConditions {
} // namespace offline_pages
-#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_DEVICE_CONDITIONS_H_
+#endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_DEVICE_CONDITIONS_H_

Powered by Google App Engine
This is Rietveld 408576698