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

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

Issue 1257543004: Add oom tab killing and the about:discards page on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@memoryPressureOnLinux
Patch Set: Created 5 years, 4 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 | « chrome/browser/ui/webui/about_ui.cc ('k') | chrome/common/chrome_switches.h » ('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 <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 #if !defined(OS_ANDROID) 271 #if !defined(OS_ANDROID)
272 || url.host() == chrome::kChromeUITermsHost 272 || url.host() == chrome::kChromeUITermsHost
273 #endif 273 #endif
274 #if defined(OS_LINUX) || defined(OS_OPENBSD) 274 #if defined(OS_LINUX) || defined(OS_OPENBSD)
275 || url.host() == chrome::kChromeUILinuxProxyConfigHost || 275 || url.host() == chrome::kChromeUILinuxProxyConfigHost ||
276 url.host() == chrome::kChromeUISandboxHost 276 url.host() == chrome::kChromeUISandboxHost
277 #endif 277 #endif
278 #if defined(OS_CHROMEOS) 278 #if defined(OS_CHROMEOS)
279 || url.host() == chrome::kChromeUIOSCreditsHost 279 || url.host() == chrome::kChromeUIOSCreditsHost
280 #endif 280 #endif
281 #if defined(OS_WIN) || defined(OS_CHROMEOS) 281 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_LINUX)
282 || url.host() == chrome::kChromeUIDiscardsHost 282 || url.host() == chrome::kChromeUIDiscardsHost
283 #endif 283 #endif
284 ); // NOLINT 284 ); // NOLINT
285 } 285 }
286 286
287 // Returns a function that can be used to create the right type of WebUI for a 287 // Returns a function that can be used to create the right type of WebUI for a
288 // tab, based on its URL. Returns NULL if the URL doesn't have WebUI associated 288 // tab, based on its URL. Returns NULL if the URL doesn't have WebUI associated
289 // with it. 289 // with it.
290 WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, 290 WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
291 Profile* profile, 291 Profile* profile,
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 #endif 757 #endif
758 758
759 // Android doesn't use the plugins pages. 759 // Android doesn't use the plugins pages.
760 if (page_url.host() == chrome::kChromeUIPluginsHost) 760 if (page_url.host() == chrome::kChromeUIPluginsHost)
761 return PluginsUI::GetFaviconResourceBytes(scale_factor); 761 return PluginsUI::GetFaviconResourceBytes(scale_factor);
762 762
763 #endif 763 #endif
764 764
765 return NULL; 765 return NULL;
766 } 766 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/about_ui.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698