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

Unified Diff: ios/web/test/crw_fake_web_controller_observer.mm

Issue 2567303003: [ios] Removed unused CRWWebControllerObserver methods. (Closed)
Patch Set: Self review Created 4 years 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: ios/web/test/crw_fake_web_controller_observer.mm
diff --git a/ios/web/test/crw_fake_web_controller_observer.mm b/ios/web/test/crw_fake_web_controller_observer.mm
index c15553fc71dcb9a37398a67e2875e11e50a06a12..8378ce2a30a16dce715b4f7dc8e1f0195c31a238 100644
--- a/ios/web/test/crw_fake_web_controller_observer.mm
+++ b/ios/web/test/crw_fake_web_controller_observer.mm
@@ -4,49 +4,12 @@
#import "ios/web/test/crw_fake_web_controller_observer.h"
-#import "base/logging.h"
-#import "base/mac/scoped_nsobject.h"
-#include "base/values.h"
-
-@implementation CRWFakeWebControllerObserver {
- ScopedVector<base::DictionaryValue> _commandsReceived;
- base::scoped_nsobject<NSString> _commandPrefix;
-}
+@implementation CRWFakeWebControllerObserver
@synthesize pageLoaded = _pageLoaded;
-- (instancetype)initWithCommandPrefix:(NSString*)commandPrefix {
- DCHECK(commandPrefix);
- self = [super init];
- if (self) {
- _commandPrefix.reset([commandPrefix copy]);
- }
- return self;
-}
-
-- (instancetype)init {
- NOTREACHED();
- return nil;
-}
-
- (void)pageLoaded:(CRWWebController*)webController {
_pageLoaded = YES;
}
-- (NSString*)commandPrefix {
- return _commandPrefix;
-}
-
-- (BOOL)handleCommand:(const base::DictionaryValue&)command
- webController:(CRWWebController*)webController
- userIsInteracting:(BOOL)userIsInteracting
- originURL:(const GURL&)originURL {
- _commandsReceived.push_back(command.DeepCopy());
- return YES;
-}
-
-- (ScopedVector<base::DictionaryValue>&)commandsReceived {
- return _commandsReceived;
-}
-
@end
« no previous file with comments | « ios/web/test/crw_fake_web_controller_observer.h ('k') | ios/web/test/crw_fake_web_controller_observer_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698