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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 8588039: Remove "open in new tab" items from context menu if the process doesn't (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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) 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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 return true; 398 return true;
399 } 399 }
400 400
401 bool ChromeContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { 401 bool ChromeContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) {
402 return url == GURL(chrome::kChromeUICrashURL) || 402 return url == GURL(chrome::kChromeUICrashURL) ||
403 url == GURL(chrome::kChromeUIKillURL) || 403 url == GURL(chrome::kChromeUIKillURL) ||
404 url == GURL(chrome::kChromeUIHangURL) || 404 url == GURL(chrome::kChromeUIHangURL) ||
405 url == GURL(chrome::kChromeUIShorthangURL); 405 url == GURL(chrome::kChromeUIShorthangURL);
406 } 406 }
407 407
408 bool ChromeContentBrowserClient::IsHandledURL(const GURL& url) {
409 return ProfileIOData::IsHandledURL(url);
410 }
411
408 bool ChromeContentBrowserClient::IsSuitableHost( 412 bool ChromeContentBrowserClient::IsSuitableHost(
409 content::RenderProcessHost* process_host, 413 content::RenderProcessHost* process_host,
410 const GURL& site_url) { 414 const GURL& site_url) {
411 Profile* profile = 415 Profile* profile =
412 Profile::FromBrowserContext(process_host->GetBrowserContext()); 416 Profile::FromBrowserContext(process_host->GetBrowserContext());
413 ExtensionService* service = profile->GetExtensionService(); 417 ExtensionService* service = profile->GetExtensionService();
414 extensions::ProcessMap* process_map = service->process_map(); 418 extensions::ProcessMap* process_map = service->process_map();
415 419
416 // Don't allow the Task Manager to share a process with anything else. 420 // Don't allow the Task Manager to share a process with anything else.
417 // Otherwise it can affect the renderers it is observing. 421 // Otherwise it can affect the renderers it is observing.
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 #if defined(USE_NSS) 1181 #if defined(USE_NSS)
1178 crypto::CryptoModuleBlockingPasswordDelegate* 1182 crypto::CryptoModuleBlockingPasswordDelegate*
1179 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 1183 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
1180 const GURL& url) { 1184 const GURL& url) {
1181 return browser::NewCryptoModuleBlockingDialogDelegate( 1185 return browser::NewCryptoModuleBlockingDialogDelegate(
1182 browser::kCryptoModulePasswordKeygen, url.host()); 1186 browser::kCryptoModulePasswordKeygen, url.host());
1183 } 1187 }
1184 #endif 1188 #endif
1185 1189
1186 } // namespace chrome 1190 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698