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

Side by Side Diff: chrome/browser/chromeos/mobile/mobile_activator.cc

Issue 300623008: Move NetworkTypePattern to its own file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/mobile/mobile_activator.h" 5 #include "chrome/browser/chromeos/mobile/mobile_activator.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 #include "chrome/browser/browser_process.h" 28 #include "chrome/browser/browser_process.h"
29 #include "chrome/common/pref_names.h" 29 #include "chrome/common/pref_names.h"
30 #include "chromeos/network/device_state.h" 30 #include "chromeos/network/device_state.h"
31 #include "chromeos/network/network_activation_handler.h" 31 #include "chromeos/network/network_activation_handler.h"
32 #include "chromeos/network/network_configuration_handler.h" 32 #include "chromeos/network/network_configuration_handler.h"
33 #include "chromeos/network/network_connection_handler.h" 33 #include "chromeos/network/network_connection_handler.h"
34 #include "chromeos/network/network_event_log.h" 34 #include "chromeos/network/network_event_log.h"
35 #include "chromeos/network/network_handler_callbacks.h" 35 #include "chromeos/network/network_handler_callbacks.h"
36 #include "chromeos/network/network_state.h" 36 #include "chromeos/network/network_state.h"
37 #include "chromeos/network/network_state_handler.h" 37 #include "chromeos/network/network_state_handler.h"
38 #include "chromeos/network/shill_property_util.h"
39 #include "content/public/browser/browser_thread.h" 38 #include "content/public/browser/browser_thread.h"
40 #include "third_party/cros_system_api/dbus/service_constants.h" 39 #include "third_party/cros_system_api/dbus/service_constants.h"
41 40
42 using content::BrowserThread; 41 using content::BrowserThread;
43 42
44 namespace { 43 namespace {
45 44
46 // Cellular configuration file path. 45 // Cellular configuration file path.
47 const char kCellularConfigPath[] = 46 const char kCellularConfigPath[] =
48 "/usr/share/chromeos-assets/mobile/mobile_config.json"; 47 "/usr/share/chromeos-assets/mobile/mobile_config.json";
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 cellular_plan_payment_time_ = base::Time::Now(); 1080 cellular_plan_payment_time_ = base::Time::Now();
1082 } 1081 }
1083 1082
1084 bool MobileActivator::HasRecentCellularPlanPayment() const { 1083 bool MobileActivator::HasRecentCellularPlanPayment() const {
1085 const int kRecentPlanPaymentHours = 6; 1084 const int kRecentPlanPaymentHours = 6;
1086 return (base::Time::Now() - 1085 return (base::Time::Now() -
1087 cellular_plan_payment_time_).InHours() < kRecentPlanPaymentHours; 1086 cellular_plan_payment_time_).InHours() < kRecentPlanPaymentHours;
1088 } 1087 }
1089 1088
1090 } // namespace chromeos 1089 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698