OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chromeos/network/policy_applicator.h" | 5 #include "chromeos/network/policy_applicator.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/values.h" | |
15 #include "chromeos/dbus/dbus_thread_manager.h" | 14 #include "chromeos/dbus/dbus_thread_manager.h" |
16 #include "chromeos/dbus/shill_profile_client.h" | 15 #include "chromeos/dbus/shill_profile_client.h" |
17 #include "chromeos/network/network_type_pattern.h" | 16 #include "chromeos/network/network_type_pattern.h" |
18 #include "chromeos/network/network_ui_data.h" | 17 #include "chromeos/network/network_ui_data.h" |
19 #include "chromeos/network/onc/onc_signature.h" | 18 #include "chromeos/network/onc/onc_signature.h" |
20 #include "chromeos/network/onc/onc_translator.h" | 19 #include "chromeos/network/onc/onc_translator.h" |
21 #include "chromeos/network/policy_util.h" | 20 #include "chromeos/network/policy_util.h" |
22 #include "chromeos/network/shill_property_util.h" | 21 #include "chromeos/network/shill_property_util.h" |
23 #include "components/onc/onc_constants.h" | 22 #include "components/onc/onc_constants.h" |
24 #include "dbus/object_path.h" | 23 #include "dbus/object_path.h" |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 } | 339 } |
341 remaining_policies_.clear(); | 340 remaining_policies_.clear(); |
342 } | 341 } |
343 | 342 |
344 void PolicyApplicator::NotifyConfigurationHandlerAndFinish() { | 343 void PolicyApplicator::NotifyConfigurationHandlerAndFinish() { |
345 weak_ptr_factory_.InvalidateWeakPtrs(); | 344 weak_ptr_factory_.InvalidateWeakPtrs(); |
346 handler_->OnPoliciesApplied(profile_); | 345 handler_->OnPoliciesApplied(profile_); |
347 } | 346 } |
348 | 347 |
349 } // namespace chromeos | 348 } // namespace chromeos |
OLD | NEW |