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

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

Issue 11783008: Add a lock to the managed user settings page and require authentication for unlocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Several fixes Created 7 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 | Annotate | Revision Log
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 if (url.spec() == chrome::kChromeUIConstrainedHTMLTestURL) 199 if (url.spec() == chrome::kChromeUIConstrainedHTMLTestURL)
200 return &NewWebUI<ConstrainedWebDialogUI>; 200 return &NewWebUI<ConstrainedWebDialogUI>;
201 if (url.host() == chrome::kChromeUIGpuInternalsHost) 201 if (url.host() == chrome::kChromeUIGpuInternalsHost)
202 return &NewWebUI<GpuInternalsUI>; 202 return &NewWebUI<GpuInternalsUI>;
203 if (url.host() == chrome::kChromeUIHistoryFrameHost) 203 if (url.host() == chrome::kChromeUIHistoryFrameHost)
204 return &NewWebUI<HistoryUI>; 204 return &NewWebUI<HistoryUI>;
205 if (url.host() == chrome::kChromeUIInstantHost) 205 if (url.host() == chrome::kChromeUIInstantHost)
206 return &NewWebUI<InstantUI>; 206 return &NewWebUI<InstantUI>;
207 if (url.host() == chrome::kChromeUILocalOmniboxPopupHost) 207 if (url.host() == chrome::kChromeUILocalOmniboxPopupHost)
208 return &NewWebUI<LocalOmniboxPopupUI>; 208 return &NewWebUI<LocalOmniboxPopupUI>;
209 if (url.host() == chrome::kChromeUIManagedUserPassphrasePageHost)
210 return &NewWebUI<ConstrainedWebDialogUI>;
209 if (url.host() == chrome::kChromeUIMediaInternalsHost) 211 if (url.host() == chrome::kChromeUIMediaInternalsHost)
210 return &NewWebUI<MediaInternalsUI>; 212 return &NewWebUI<MediaInternalsUI>;
211 #if !defined(DISABLE_NACL) 213 #if !defined(DISABLE_NACL)
212 if (url.host() == chrome::kChromeUINaClHost) 214 if (url.host() == chrome::kChromeUINaClHost)
213 return &NewWebUI<NaClUI>; 215 return &NewWebUI<NaClUI>;
214 #endif 216 #endif
215 if (url.host() == chrome::kChromeUINetInternalsHost) 217 if (url.host() == chrome::kChromeUINetInternalsHost)
216 return &NewWebUI<NetInternalsUI>; 218 return &NewWebUI<NetInternalsUI>;
217 if (url.host() == chrome::kChromeUIOmniboxHost) 219 if (url.host() == chrome::kChromeUIOmniboxHost)
218 return &NewWebUI<OmniboxUI>; 220 return &NewWebUI<OmniboxUI>;
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 617 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
616 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); 618 return options::OptionsUI::GetFaviconResourceBytes(scale_factor);
617 619
618 // Android doesn't use the plugins pages. 620 // Android doesn't use the plugins pages.
619 if (page_url.host() == chrome::kChromeUIPluginsHost) 621 if (page_url.host() == chrome::kChromeUIPluginsHost)
620 return PluginsUI::GetFaviconResourceBytes(scale_factor); 622 return PluginsUI::GetFaviconResourceBytes(scale_factor);
621 #endif 623 #endif
622 624
623 return NULL; 625 return NULL;
624 } 626 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698