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

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

Issue 2964693003: Added experiments section and exported the list of SafeBrowsing features in WebUI (Closed)
Patch Set: Fixed the variable names according to the standard 01 Created 3 years, 5 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 | chrome/renderer/safe_browsing/DEPS » ('j') | 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 return &NewWebUI<PasswordManagerInternalsUI>; 363 return &NewWebUI<PasswordManagerInternalsUI>;
364 if (url.host_piece() == chrome::kChromeUIPhysicalWebHost) 364 if (url.host_piece() == chrome::kChromeUIPhysicalWebHost)
365 return &NewWebUI<PhysicalWebUI>; 365 return &NewWebUI<PhysicalWebUI>;
366 if (url.host_piece() == chrome::kChromeUIPredictorsHost) 366 if (url.host_piece() == chrome::kChromeUIPredictorsHost)
367 return &NewWebUI<PredictorsUI>; 367 return &NewWebUI<PredictorsUI>;
368 if (url.host_piece() == chrome::kChromeUIProfilerHost) 368 if (url.host_piece() == chrome::kChromeUIProfilerHost)
369 return &NewWebUI<ProfilerUI>; 369 return &NewWebUI<ProfilerUI>;
370 if (url.host() == chrome::kChromeUIQuotaInternalsHost) 370 if (url.host() == chrome::kChromeUIQuotaInternalsHost)
371 return &NewWebUI<QuotaInternalsUI>; 371 return &NewWebUI<QuotaInternalsUI>;
372 if (url.host() == safe_browsing::kChromeUISafeBrowsingHost) 372 if (url.host() == safe_browsing::kChromeUISafeBrowsingHost)
373 return &NewWebUI<SafeBrowsingUI>; 373 return &NewWebUI<safe_browsing::SafeBrowsingUI>;
374 if (url.host() == chrome::kChromeUISignInInternalsHost) 374 if (url.host() == chrome::kChromeUISignInInternalsHost)
375 return &NewWebUI<SignInInternalsUI>; 375 return &NewWebUI<SignInInternalsUI>;
376 if (url.host_piece() == chrome::kChromeUISuggestionsHost) 376 if (url.host_piece() == chrome::kChromeUISuggestionsHost)
377 return &NewWebUI<suggestions::SuggestionsUI>; 377 return &NewWebUI<suggestions::SuggestionsUI>;
378 if (url.host_piece() == chrome::kChromeUISupervisedUserInternalsHost) 378 if (url.host_piece() == chrome::kChromeUISupervisedUserInternalsHost)
379 return &NewWebUI<SupervisedUserInternalsUI>; 379 return &NewWebUI<SupervisedUserInternalsUI>;
380 if (url.host_piece() == chrome::kChromeUISupervisedUserPassphrasePageHost) 380 if (url.host_piece() == chrome::kChromeUISupervisedUserPassphrasePageHost)
381 return &NewWebUI<ConstrainedWebDialogUI>; 381 return &NewWebUI<ConstrainedWebDialogUI>;
382 if (url.host_piece() == chrome::kChromeUISyncInternalsHost) 382 if (url.host_piece() == chrome::kChromeUISyncInternalsHost)
383 return &NewWebUI<SyncInternalsUI>; 383 return &NewWebUI<SyncInternalsUI>;
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 806
807 #if BUILDFLAG(ENABLE_EXTENSIONS) 807 #if BUILDFLAG(ENABLE_EXTENSIONS)
808 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost || 808 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost ||
809 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost) 809 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost)
810 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); 810 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor);
811 #endif // BUILDFLAG(ENABLE_EXTENSIONS) 811 #endif // BUILDFLAG(ENABLE_EXTENSIONS)
812 #endif // !defined(OS_ANDROID) 812 #endif // !defined(OS_ANDROID)
813 813
814 return NULL; 814 return NULL;
815 } 815 }
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/safe_browsing/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698