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

Side by Side Diff: chrome/browser/ui/browser_mac.cc

Issue 12077030: Allow signin to continue even if sync is disabled by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows sync integration test failure Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser_command_controller.cc ('k') | chrome/browser/ui/chrome_pages.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/browser_mac.h" 5 #include "chrome/browser/ui/browser_mac.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 10
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 void OpenOptionsWindow(Profile* profile) { 37 void OpenOptionsWindow(Profile* profile) {
38 Browser* browser = new Browser(Browser::CreateParams(profile)); 38 Browser* browser = new Browser(Browser::CreateParams(profile));
39 ShowSettings(browser); 39 ShowSettings(browser);
40 browser->window()->Show(); 40 browser->window()->Show();
41 } 41 }
42 42
43 void OpenSyncSetupWindow(Profile* profile, SyncPromoUI::Source source) { 43 void OpenSyncSetupWindow(Profile* profile, SyncPromoUI::Source source) {
44 Browser* browser = new Browser(Browser::CreateParams(profile)); 44 Browser* browser = new Browser(Browser::CreateParams(profile));
45 ShowSyncSetup(browser, source); 45 ShowBrowserSignin(browser, source);
46 browser->window()->Show(); 46 browser->window()->Show();
47 } 47 }
48 48
49 void OpenClearBrowsingDataDialogWindow(Profile* profile) { 49 void OpenClearBrowsingDataDialogWindow(Profile* profile) {
50 Browser* browser = new Browser(Browser::CreateParams(profile)); 50 Browser* browser = new Browser(Browser::CreateParams(profile));
51 ShowClearBrowsingDataDialog(browser); 51 ShowClearBrowsingDataDialog(browser);
52 browser->window()->Show(); 52 browser->window()->Show();
53 } 53 }
54 54
55 void OpenImportSettingsDialogWindow(Profile* profile) { 55 void OpenImportSettingsDialogWindow(Profile* profile) {
56 Browser* browser = new Browser(Browser::CreateParams(profile)); 56 Browser* browser = new Browser(Browser::CreateParams(profile));
57 ShowImportDialog(browser); 57 ShowImportDialog(browser);
58 browser->window()->Show(); 58 browser->window()->Show();
59 } 59 }
60 60
61 void OpenBookmarkManagerWindow(Profile* profile) { 61 void OpenBookmarkManagerWindow(Profile* profile) {
62 Browser* browser = new Browser(Browser::CreateParams(profile)); 62 Browser* browser = new Browser(Browser::CreateParams(profile));
63 ShowBookmarkManager(browser); 63 ShowBookmarkManager(browser);
64 browser->window()->Show(); 64 browser->window()->Show();
65 } 65 }
66 66
67 void OpenExtensionsWindow(Profile* profile) { 67 void OpenExtensionsWindow(Profile* profile) {
68 Browser* browser = new Browser(Browser::CreateParams(profile)); 68 Browser* browser = new Browser(Browser::CreateParams(profile));
69 ShowExtensions(browser); 69 ShowExtensions(browser);
70 browser->window()->Show(); 70 browser->window()->Show();
71 } 71 }
72 72
73 } // namespace chrome 73 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_command_controller.cc ('k') | chrome/browser/ui/chrome_pages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698