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

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

Issue 7104112: [Landed on behalf of junov@chromium.org] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | « no previous file | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 // it is closed. 1038 // it is closed.
1039 tab->AddInfoBar(new SessionCrashedInfoBarDelegate(tab->tab_contents())); 1039 tab->AddInfoBar(new SessionCrashedInfoBarDelegate(tab->tab_contents()));
1040 } 1040 }
1041 } 1041 }
1042 1042
1043 void BrowserInit::LaunchWithProfile::AddBadFlagsInfoBarIfNecessary( 1043 void BrowserInit::LaunchWithProfile::AddBadFlagsInfoBarIfNecessary(
1044 TabContentsWrapper* tab) { 1044 TabContentsWrapper* tab) {
1045 // Unsupported flags for which to display a warning that "stability and 1045 // Unsupported flags for which to display a warning that "stability and
1046 // security will suffer". 1046 // security will suffer".
1047 static const char* kBadFlags[] = { 1047 static const char* kBadFlags[] = {
1048 // Warn when accelerated 2d canvas is enabled as its presence can
1049 // affect stability and rendering correctness of certain pages.
1050 // TODO(vangelis): Remove when accelerated 2d canvas is enabled by default.
1051 switches::kEnableAccelerated2dCanvas,
1052 // These imply disabling the sandbox. 1048 // These imply disabling the sandbox.
1053 switches::kSingleProcess, 1049 switches::kSingleProcess,
1054 switches::kNoSandbox, 1050 switches::kNoSandbox,
1055 switches::kInProcessWebGL, 1051 switches::kInProcessWebGL,
1056 NULL 1052 NULL
1057 }; 1053 };
1058 1054
1059 const char* bad_flag = NULL; 1055 const char* bad_flag = NULL;
1060 for (const char** flag = kBadFlags; *flag; ++flag) { 1056 for (const char** flag = kBadFlags; *flag; ++flag) {
1061 if (command_line_.HasSwitch(*flag)) { 1057 if (command_line_.HasSwitch(*flag)) {
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 return false; 1423 return false;
1428 automation->SetExpectedTabCount(expected_tabs); 1424 automation->SetExpectedTabCount(expected_tabs);
1429 1425
1430 AutomationProviderList* list = 1426 AutomationProviderList* list =
1431 g_browser_process->InitAutomationProviderList(); 1427 g_browser_process->InitAutomationProviderList();
1432 DCHECK(list); 1428 DCHECK(list);
1433 list->AddProvider(automation); 1429 list->AddProvider(automation);
1434 1430
1435 return true; 1431 return true;
1436 } 1432 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698