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

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

Issue 7015015: Add infobar warning when accelerated 2d canvas is enabled. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | 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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 // it is closed. 1040 // it is closed.
1041 tab->AddInfoBar(new SessionCrashedInfoBarDelegate(tab)); 1041 tab->AddInfoBar(new SessionCrashedInfoBarDelegate(tab));
1042 } 1042 }
1043 } 1043 }
1044 1044
1045 void BrowserInit::LaunchWithProfile::AddBadFlagsInfoBarIfNecessary( 1045 void BrowserInit::LaunchWithProfile::AddBadFlagsInfoBarIfNecessary(
1046 TabContents* tab) { 1046 TabContents* tab) {
1047 // Unsupported flags for which to display a warning that "stability and 1047 // Unsupported flags for which to display a warning that "stability and
1048 // security will suffer". 1048 // security will suffer".
1049 static const char* kBadFlags[] = { 1049 static const char* kBadFlags[] = {
1050 // Warn when accelerated 2d canvas is enabled as its presence can
1051 // affect stability and rendering correctness of certain pages.
1052 // TODO(vangelis): Remove when accelerated 2d canvas is enabled by default.
1053 switches::kEnableAccelerated2dCanvas,
1050 // These imply disabling the sandbox. 1054 // These imply disabling the sandbox.
1051 switches::kSingleProcess, 1055 switches::kSingleProcess,
1052 switches::kNoSandbox, 1056 switches::kNoSandbox,
1053 switches::kInProcessWebGL, 1057 switches::kInProcessWebGL,
1054 NULL 1058 NULL
1055 }; 1059 };
1056 1060
1057 const char* bad_flag = NULL; 1061 const char* bad_flag = NULL;
1058 for (const char** flag = kBadFlags; *flag; ++flag) { 1062 for (const char** flag = kBadFlags; *flag; ++flag) {
1059 if (command_line_.HasSwitch(*flag)) { 1063 if (command_line_.HasSwitch(*flag)) {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 return false; 1397 return false;
1394 automation->SetExpectedTabCount(expected_tabs); 1398 automation->SetExpectedTabCount(expected_tabs);
1395 1399
1396 AutomationProviderList* list = 1400 AutomationProviderList* list =
1397 g_browser_process->InitAutomationProviderList(); 1401 g_browser_process->InitAutomationProviderList();
1398 DCHECK(list); 1402 DCHECK(list);
1399 list->AddProvider(automation); 1403 list->AddProvider(automation);
1400 1404
1401 return true; 1405 return true;
1402 } 1406 }
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