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

Side by Side Diff: ios/chrome/browser/ui/show_privacy_settings_util.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
« no previous file with comments | « ios/chrome/browser/ui/commands/show_signin_command.mm ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ui/show_privacy_settings_util.h" 5 #import "ios/chrome/browser/ui/show_privacy_settings_util.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #import "base/mac/scoped_nsobject.h"
8 #include "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h" 8 #import "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h"
9 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h" 9 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
10 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" 10 #include "ios/chrome/browser/ui/commands/ios_command_ids.h"
11 11
12 void ShowClearBrowsingData() { 12 void ShowClearBrowsingData() {
13 base::scoped_nsobject<GenericChromeCommand> command( 13 base::scoped_nsobject<GenericChromeCommand> command(
14 [[GenericChromeCommand alloc] init]); 14 [[GenericChromeCommand alloc] initWithTag:IDC_SHOW_PRIVACY_SETTINGS]);
15 [command setTag:IDC_SHOW_PRIVACY_SETTINGS];
16 UIWindow* main_window = [[UIApplication sharedApplication] keyWindow]; 15 UIWindow* main_window = [[UIApplication sharedApplication] keyWindow];
17 [main_window chromeExecuteCommand:command]; 16 [main_window chromeExecuteCommand:command];
18 } 17 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/commands/show_signin_command.mm ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698