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

Unified Diff: ios/web_view/test/observer.mm

Issue 2902403002: Add KVO compliant title property to CWVWebView. (Closed)
Patch Set: Remove observers directory. Created 3 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
« no previous file with comments | « ios/web_view/test/observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/test/observer.mm
diff --git a/ios/web_view/test/boolean_observer.mm b/ios/web_view/test/observer.mm
similarity index 81%
rename from ios/web_view/test/boolean_observer.mm
rename to ios/web_view/test/observer.mm
index fc2b5f2dcd3cb873f01b2634f65db7f7e3e88db2..b8d1cd73f8e943e6de1576dcbf6d8f70fa461668 100644
--- a/ios/web_view/test/boolean_observer.mm
+++ b/ios/web_view/test/observer.mm
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "ios/web_view/test/boolean_observer.h"
+#import "ios/web_view/test/observer.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
-@implementation BooleanObserver
+@implementation Observer
@synthesize keyPath = _keyPath;
@synthesize lastValue = _lastValue;
@@ -20,12 +20,10 @@
_lastValue = nil;
_keyPath = [keyPath copy];
_object = object;
- if (keyPath) {
- [_object addObserver:self
- forKeyPath:_keyPath
- options:NSKeyValueObservingOptionNew
- context:nil];
- }
+ [_object addObserver:self
+ forKeyPath:_keyPath
+ options:NSKeyValueObservingOptionNew
+ context:nil];
}
- (void)observeValueForKeyPath:(NSString*)keyPath
« no previous file with comments | « ios/web_view/test/observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698