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

Unified Diff: net/base/network_config_watcher_mac.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: net/base/network_config_watcher_mac.cc
diff --git a/net/base/network_config_watcher_mac.cc b/net/base/network_config_watcher_mac.cc
index 8579a35839144cb08e1ef9bdb8109432fcff2b0d..08dbe4594b7148424352ef60bb0b8fe74b70552b 100644
--- a/net/base/network_config_watcher_mac.cc
+++ b/net/base/network_config_watcher_mac.cc
@@ -54,7 +54,8 @@ NetworkConfigWatcherMacThread::NetworkConfigWatcherMacThread(
NetworkConfigWatcherMac::Delegate* delegate)
: base::Thread("NetworkConfigWatcher"),
delegate_(delegate),
- weak_factory_(this) {}
+ weak_factory_(this) {
+}
NetworkConfigWatcherMacThread::~NetworkConfigWatcherMacThread() {
// Allow IO because Stop() calls PlatformThread::Join(), which is a blocking
@@ -85,8 +86,8 @@ void NetworkConfigWatcherMacThread::CleanUp() {
if (!run_loop_source_.get())
return;
- CFRunLoopRemoveSource(CFRunLoopGetCurrent(), run_loop_source_.get(),
- kCFRunLoopCommonModes);
+ CFRunLoopRemoveSource(
+ CFRunLoopGetCurrent(), run_loop_source_.get(), kCFRunLoopCommonModes);
run_loop_source_.reset();
}
@@ -95,18 +96,18 @@ void NetworkConfigWatcherMacThread::InitNotifications() {
// SCDynamicStore API does not exist on iOS.
// Add a run loop source for a dynamic store to the current run loop.
SCDynamicStoreContext context = {
- 0, // Version 0.
- delegate_, // User data.
- NULL, // This is not reference counted. No retain function.
- NULL, // This is not reference counted. No release function.
- NULL, // No description for this.
+ 0, // Version 0.
+ delegate_, // User data.
+ NULL, // This is not reference counted. No retain function.
+ NULL, // This is not reference counted. No release function.
+ NULL, // No description for this.
};
base::ScopedCFTypeRef<SCDynamicStoreRef> store(SCDynamicStoreCreate(
NULL, CFSTR("org.chromium"), DynamicStoreCallback, &context));
- run_loop_source_.reset(SCDynamicStoreCreateRunLoopSource(
- NULL, store.get(), 0));
- CFRunLoopAddSource(CFRunLoopGetCurrent(), run_loop_source_.get(),
- kCFRunLoopCommonModes);
+ run_loop_source_.reset(
+ SCDynamicStoreCreateRunLoopSource(NULL, store.get(), 0));
+ CFRunLoopAddSource(
+ CFRunLoopGetCurrent(), run_loop_source_.get(), kCFRunLoopCommonModes);
#endif // !defined(OS_IOS)
// Set up notifications for interface and IP address changes.
@@ -127,6 +128,7 @@ NetworkConfigWatcherMac::NetworkConfigWatcherMac(Delegate* delegate)
notifier_thread_->StartWithOptions(thread_options);
}
-NetworkConfigWatcherMac::~NetworkConfigWatcherMac() {}
+NetworkConfigWatcherMac::~NetworkConfigWatcherMac() {
+}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698