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

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

Issue 4980005: Allow sync with 2-factor StrongAuth accounts in ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactored 2-factor error passing Created 10 years, 1 month 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_init.h" 5 #include "chrome/browser/ui/browser_init.h"
6 6
7 #include <algorithm> // For max(). 7 #include <algorithm> // For max().
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 { 863 {
864 base::ThreadRestrictions::ScopedAllowIO allow_io; 864 base::ThreadRestrictions::ScopedAllowIO allow_io;
865 url = URLFixerUpper::FixupRelativeFile(cur_dir_, param); 865 url = URLFixerUpper::FixupRelativeFile(cur_dir_, param);
866 } 866 }
867 // Exclude dangerous schemes. 867 // Exclude dangerous schemes.
868 if (url.is_valid()) { 868 if (url.is_valid()) {
869 ChildProcessSecurityPolicy *policy = 869 ChildProcessSecurityPolicy *policy =
870 ChildProcessSecurityPolicy::GetInstance(); 870 ChildProcessSecurityPolicy::GetInstance();
871 if (policy->IsWebSafeScheme(url.scheme()) || 871 if (policy->IsWebSafeScheme(url.scheme()) ||
872 url.SchemeIs(chrome::kFileScheme) || 872 url.SchemeIs(chrome::kFileScheme) ||
873 !url.spec().compare(chrome::kAboutBlankURL)) { 873 #if defined(OS_CHROMEOS)
874 // In ChromeOS, allow a settings page to be specified on the
875 // command line. See ExistingUserController::OnLoginSuccess.
876 (url.spec().find(chrome::kChromeUISettingsURL) == 0) ||
877 #endif
878 (url.spec().compare(chrome::kAboutBlankURL) == 0)) {
874 urls.push_back(url); 879 urls.push_back(url);
875 } 880 }
876 } 881 }
877 } 882 }
878 } 883 }
879 return urls; 884 return urls;
880 } 885 }
881 886
882 void BrowserInit::LaunchWithProfile::AddStartupURLs( 887 void BrowserInit::LaunchWithProfile::AddStartupURLs(
883 std::vector<GURL>* startup_urls) const { 888 std::vector<GURL>* startup_urls) const {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 scoped_refptr<AutomationProviderClass> automation = 1031 scoped_refptr<AutomationProviderClass> automation =
1027 new AutomationProviderClass(profile); 1032 new AutomationProviderClass(profile);
1028 automation->ConnectToChannel(channel_id); 1033 automation->ConnectToChannel(channel_id);
1029 automation->SetExpectedTabCount(expected_tabs); 1034 automation->SetExpectedTabCount(expected_tabs);
1030 1035
1031 AutomationProviderList* list = 1036 AutomationProviderList* list =
1032 g_browser_process->InitAutomationProviderList(); 1037 g_browser_process->InitAutomationProviderList();
1033 DCHECK(list); 1038 DCHECK(list);
1034 list->AddProvider(automation); 1039 list->AddProvider(automation);
1035 } 1040 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698