Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/device_sharing/device_sharing_manager.h" | 5 #include "ios/chrome/browser/device_sharing/device_sharing_manager.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
| 10 #import "components/handoff/handoff_manager.h" | 10 #import "components/handoff/handoff_manager.h" |
| 11 #include "components/handoff/pref_names_ios.h" | |
| 11 #include "components/prefs/pref_change_registrar.h" | 12 #include "components/prefs/pref_change_registrar.h" |
| 12 #include "components/prefs/pref_service.h" | 13 #include "components/prefs/pref_service.h" |
| 13 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 14 #include "ios/chrome/browser/pref_names.h" | 15 #include "ios/chrome/browser/pref_names.h" |
|
rohitrao (ping after 24h)
2016/12/14 14:54:03
Can this be removed?
sdefresne
2016/12/14 15:58:03
Done.
| |
| 15 #include "ios/chrome/browser/prefs/pref_observer_bridge.h" | 16 #include "ios/chrome/browser/prefs/pref_observer_bridge.h" |
| 16 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 17 | 18 |
| 18 #if !defined(__has_feature) || !__has_feature(objc_arc) | 19 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 19 #error "This file requires ARC support." | 20 #error "This file requires ARC support." |
| 20 #endif | 21 #endif |
| 21 | 22 |
| 22 @interface DeviceSharingManager ()<PrefObserverDelegate> { | 23 @interface DeviceSharingManager ()<PrefObserverDelegate> { |
| 23 ios::ChromeBrowserState* _browserState; // weak | 24 ios::ChromeBrowserState* _browserState; // weak |
| 24 | 25 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 | 99 |
| 99 @end | 100 @end |
| 100 | 101 |
| 101 @implementation DeviceSharingManager (TestingOnly) | 102 @implementation DeviceSharingManager (TestingOnly) |
| 102 | 103 |
| 103 - (HandoffManager*)handoffManager { | 104 - (HandoffManager*)handoffManager { |
| 104 return _handoffManager.get(); | 105 return _handoffManager.get(); |
| 105 } | 106 } |
| 106 | 107 |
| 107 @end | 108 @end |
| OLD | NEW |