| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/i18n/time_formatting.h" | 8 #include "base/i18n/time_formatting.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "chrome/browser/policy/cloud_policy_cache_base.h" | 32 #include "chrome/browser/policy/cloud_policy_cache_base.h" |
| 33 #include "chrome/browser/policy/cloud_policy_data_store.h" | 33 #include "chrome/browser/policy/cloud_policy_data_store.h" |
| 34 #include "chrome/browser/policy/cloud_policy_subsystem.h" | 34 #include "chrome/browser/policy/cloud_policy_subsystem.h" |
| 35 #include "chrome/browser/policy/enterprise_install_attributes.h" | 35 #include "chrome/browser/policy/enterprise_install_attributes.h" |
| 36 #include "chrome/browser/prefs/pref_service.h" | 36 #include "chrome/browser/prefs/pref_service.h" |
| 37 #include "chrome/browser/ui/browser_window.h" | 37 #include "chrome/browser/ui/browser_window.h" |
| 38 #include "chrome/browser/ui/views/window.h" | 38 #include "chrome/browser/ui/views/window.h" |
| 39 #include "chrome/common/pref_names.h" | 39 #include "chrome/common/pref_names.h" |
| 40 #include "net/base/network_change_notifier.h" | 40 #include "net/base/network_change_notifier.h" |
| 41 #include "policy/policy_constants.h" | 41 #include "policy/policy_constants.h" |
| 42 #include "ui/views/widget/widget.h" | 42 #include "views/widget/widget.h" |
| 43 | 43 |
| 44 using chromeos::CrosLibrary; | 44 using chromeos::CrosLibrary; |
| 45 using chromeos::NetworkLibrary; | 45 using chromeos::NetworkLibrary; |
| 46 using chromeos::UpdateLibrary; | 46 using chromeos::UpdateLibrary; |
| 47 using chromeos::UserManager; | 47 using chromeos::UserManager; |
| 48 | 48 |
| 49 namespace { | 49 namespace { |
| 50 | 50 |
| 51 DictionaryValue* GetNetworkInfoDict(const chromeos::Network* network) { | 51 DictionaryValue* GetNetworkInfoDict(const chromeos::Network* network) { |
| 52 DictionaryValue* item = new DictionaryValue; | 52 DictionaryValue* item = new DictionaryValue; |
| (...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 views::Widget* window = browser::CreateViewsWindow( | 1141 views::Widget* window = browser::CreateViewsWindow( |
| 1142 browser->window()->GetNativeHandle(), take_photo_dialog); | 1142 browser->window()->GetNativeHandle(), take_photo_dialog); |
| 1143 window->SetAlwaysOnTop(true); | 1143 window->SetAlwaysOnTop(true); |
| 1144 window->Show(); | 1144 window->Show(); |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 void TestingAutomationProvider::PowerChanged( | 1147 void TestingAutomationProvider::PowerChanged( |
| 1148 const chromeos::PowerSupplyStatus& status) { | 1148 const chromeos::PowerSupplyStatus& status) { |
| 1149 power_status = status; | 1149 power_status = status; |
| 1150 } | 1150 } |
| OLD | NEW |