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

Side by Side Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 2621083002: Avoid loading the chrome sign-in URLs in incognito (Closed)
Patch Set: Created 3 years, 11 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 | « 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) 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/webui/chrome_web_ui_controller_factory.h" 5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 if (url.SchemeIs(content::kChromeDevToolsScheme)) 528 if (url.SchemeIs(content::kChromeDevToolsScheme))
529 return &NewWebUI<DevToolsUI>; 529 return &NewWebUI<DevToolsUI>;
530 530
531 // chrome://inspect isn't supported on Android nor iOS. Page debugging is 531 // chrome://inspect isn't supported on Android nor iOS. Page debugging is
532 // handled by a remote devtools on the host machine, and other elements, i.e. 532 // handled by a remote devtools on the host machine, and other elements, i.e.
533 // extensions aren't supported. 533 // extensions aren't supported.
534 if (url.host_piece() == chrome::kChromeUIInspectHost) 534 if (url.host_piece() == chrome::kChromeUIInspectHost)
535 return &NewWebUI<InspectUI>; 535 return &NewWebUI<InspectUI>;
536 #endif 536 #endif
537 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 537 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
538 if (url.host_piece() == chrome::kChromeUIChromeSigninHost) 538 if (url.host_piece() == chrome::kChromeUIChromeSigninHost &&
539 !profile->IsOffTheRecord())
539 return &NewWebUI<InlineLoginUI>; 540 return &NewWebUI<InlineLoginUI>;
540 if (url.host_piece() == chrome::kChromeUIMdUserManagerHost) 541 if (url.host_piece() == chrome::kChromeUIMdUserManagerHost)
541 return &NewWebUI<MDUserManagerUI>; 542 return &NewWebUI<MDUserManagerUI>;
542 if (url.host_piece() == chrome::kChromeUISigninErrorHost) 543 if (url.host_piece() == chrome::kChromeUISigninErrorHost &&
544 !profile->IsOffTheRecord())
543 return &NewWebUI<SigninErrorUI>; 545 return &NewWebUI<SigninErrorUI>;
544 if (url.host_piece() == chrome::kChromeUISyncConfirmationHost) 546 if (url.host_piece() == chrome::kChromeUISyncConfirmationHost &&
547 !profile->IsOffTheRecord())
545 return &NewWebUI<SyncConfirmationUI>; 548 return &NewWebUI<SyncConfirmationUI>;
546 if (url.host_piece() == chrome::kChromeUISigninEmailConfirmationHost) 549 if (url.host_piece() == chrome::kChromeUISigninEmailConfirmationHost &&
550 !profile->IsOffTheRecord())
547 return &NewWebUI<SigninEmailConfirmationUI>; 551 return &NewWebUI<SigninEmailConfirmationUI>;
548 if (url.host_piece() == chrome::kChromeUIWelcomeHost) 552 if (url.host_piece() == chrome::kChromeUIWelcomeHost)
549 return &NewWebUI<WelcomeUI>; 553 return &NewWebUI<WelcomeUI>;
550 #endif 554 #endif
551 #if defined(OS_WIN) 555 #if defined(OS_WIN)
552 if (url.host_piece() == chrome::kChromeUIWelcomeWin10Host) 556 if (url.host_piece() == chrome::kChromeUIWelcomeWin10Host)
553 return &NewWebUI<WelcomeWin10UI>; 557 return &NewWebUI<WelcomeWin10UI>;
554 #endif // defined(OS_WIN) 558 #endif // defined(OS_WIN)
555 559
556 /**************************************************************************** 560 /****************************************************************************
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 #endif 825 #endif
822 826
823 // Android doesn't use the plugins pages. 827 // Android doesn't use the plugins pages.
824 if (page_url.host_piece() == chrome::kChromeUIPluginsHost) 828 if (page_url.host_piece() == chrome::kChromeUIPluginsHost)
825 return PluginsUI::GetFaviconResourceBytes(scale_factor); 829 return PluginsUI::GetFaviconResourceBytes(scale_factor);
826 830
827 #endif 831 #endif
828 832
829 return NULL; 833 return NULL;
830 } 834 }
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