| 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
|
|
|