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

Side by Side Diff: chromeos/dbus/shill_client_helper.cc

Issue 919183002: Move chromeos::device_event_log into components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move device_event_log::Initialize call to BrowserProcessImpl. Created 5 years, 10 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
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 "chromeos/dbus/shill_client_helper.h" 5 #include "chromeos/dbus/shill_client_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chromeos/device_event_log.h" 10 #include "components/device_event_log/device_event_log.h"
11 #include "dbus/message.h" 11 #include "dbus/message.h"
12 #include "dbus/object_proxy.h" 12 #include "dbus/object_proxy.h"
13 #include "dbus/values_util.h" 13 #include "dbus/values_util.h"
14 #include "third_party/cros_system_api/dbus/service_constants.h" 14 #include "third_party/cros_system_api/dbus/service_constants.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 // Class to hold onto a reference to a ShillClientHelper. This calss 18 // Class to hold onto a reference to a ShillClientHelper. This calss
19 // is owned by callbacks and released once the callback completes. 19 // is owned by callbacks and released once the callback completes.
20 // Note: Only success callbacks hold the reference. If an error callback is 20 // Note: Only success callbacks hold the reference. If an error callback is
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 return; 535 return;
536 scoped_ptr<base::Value> value(dbus::PopDataAsValue(&reader)); 536 scoped_ptr<base::Value> value(dbus::PopDataAsValue(&reader));
537 if (!value.get()) 537 if (!value.get())
538 return; 538 return;
539 539
540 FOR_EACH_OBSERVER(ShillPropertyChangedObserver, observer_list_, 540 FOR_EACH_OBSERVER(ShillPropertyChangedObserver, observer_list_,
541 OnPropertyChanged(name, *value)); 541 OnPropertyChanged(name, *value));
542 } 542 }
543 543
544 } // namespace chromeos 544 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698