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

Side by Side Diff: ios/chrome/browser/ui/commands/show_signin_command.mm

Issue 1124173004: [iOS] Upstream //ios/chrome/browser/ui/commands changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import "ios/chrome/browser/ui/commands/show_signin_command.h"
6
7 #include "base/logging.h"
8 #include "base/mac/scoped_block.h"
9 #include "ios/chrome/browser/ui/commands/ios_command_ids.h"
10
11 @implementation ShowSigninCommand {
12 base::mac::ScopedBlock<ShowSigninCommandCompletionCallback> _callback;
13 }
14
15 @synthesize operation = _operation;
16 @synthesize signInSource = _signInSource;
17
18 - (instancetype)initWithTag:(NSInteger)tag {
19 NOTREACHED();
20 return nil;
21 }
22
23 - (instancetype)initWithOperation:(AuthenticationOperation)operation
24 signInSource:(SignInSource)signInSource
25 callback:
26 (ShowSigninCommandCompletionCallback)callback {
27 if ((self = [super initWithTag:IDC_SHOW_SIGNIN_IOS])) {
28 _operation = operation;
29 _signInSource = signInSource;
30 _callback.reset(callback, base::scoped_policy::RETAIN);
31 }
32 return self;
33 }
34
35 - (instancetype)initWithOperation:(AuthenticationOperation)operation
36 signInSource:(SignInSource)signInSource {
37 return
38 [self initWithOperation:operation signInSource:signInSource callback:nil];
39 }
40
41 - (ShowSigninCommandCompletionCallback)callback {
42 return _callback.get();
43 }
44
45 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/commands/show_signin_command.h ('k') | ios/chrome/browser/ui/show_privacy_settings_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698