| OLD | NEW |
| 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/settings/cros_settings_provider.h" | 5 #include "chrome/browser/chromeos/settings/cros_settings_provider.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 12 #include "chromeos/chromeos_switches.h" | 12 #include "chromeos/chromeos_switches.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 CrosSettingsProvider::CrosSettingsProvider( | 16 CrosSettingsProvider::CrosSettingsProvider( |
| 17 const NotifyObserversCallback& notify_cb) | 17 const NotifyObserversCallback& notify_cb) |
| 18 : notify_cb_(notify_cb) { | 18 : notify_cb_(notify_cb) { |
| 19 } | 19 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 38 if (!notify_cb_.is_null()) | 38 if (!notify_cb_.is_null()) |
| 39 notify_cb_.Run(path); | 39 notify_cb_.Run(path); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void CrosSettingsProvider::SetNotifyObserversCallback( | 42 void CrosSettingsProvider::SetNotifyObserversCallback( |
| 43 const NotifyObserversCallback& notify_cb) { | 43 const NotifyObserversCallback& notify_cb) { |
| 44 notify_cb_ = notify_cb; | 44 notify_cb_ = notify_cb; |
| 45 } | 45 } |
| 46 | 46 |
| 47 }; // namespace chromeos | 47 }; // namespace chromeos |
| OLD | NEW |