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

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

Issue 10388214: Make cloud print dialog creation function not use browser list, instead obtain profile and parent w… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/printing/print_dialog_cloud.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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 } 406 }
407 407
408 void ChromeContentBrowserClient::RenderProcessHostCreated( 408 void ChromeContentBrowserClient::RenderProcessHostCreated(
409 content::RenderProcessHost* host) { 409 content::RenderProcessHost* host) {
410 int id = host->GetID(); 410 int id = host->GetID();
411 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); 411 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext());
412 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( 412 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter(
413 id, profile, profile->GetRequestContextForRenderProcess(id))); 413 id, profile, profile->GetRequestContextForRenderProcess(id)));
414 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); 414 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile));
415 #if !defined(OS_ANDROID) 415 #if !defined(OS_ANDROID)
416 host->GetChannel()->AddFilter(new PrintingMessageFilter()); 416 host->GetChannel()->AddFilter(new PrintingMessageFilter(id));
417 #endif 417 #endif
418 host->GetChannel()->AddFilter( 418 host->GetChannel()->AddFilter(
419 new SearchProviderInstallStateMessageFilter(id, profile)); 419 new SearchProviderInstallStateMessageFilter(id, profile));
420 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); 420 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id));
421 #if defined(OS_MACOSX) 421 #if defined(OS_MACOSX)
422 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); 422 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac());
423 #endif 423 #endif
424 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( 424 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter(
425 id, profile, profile->GetRequestContextForRenderProcess(id))); 425 id, profile, profile->GetRequestContextForRenderProcess(id)));
426 host->GetChannel()->AddFilter( 426 host->GetChannel()->AddFilter(
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1630 #if defined(USE_NSS) 1630 #if defined(USE_NSS)
1631 crypto::CryptoModuleBlockingPasswordDelegate* 1631 crypto::CryptoModuleBlockingPasswordDelegate*
1632 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 1632 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
1633 const GURL& url) { 1633 const GURL& url) {
1634 return browser::NewCryptoModuleBlockingDialogDelegate( 1634 return browser::NewCryptoModuleBlockingDialogDelegate(
1635 browser::kCryptoModulePasswordKeygen, url.host()); 1635 browser::kCryptoModulePasswordKeygen, url.host());
1636 } 1636 }
1637 #endif 1637 #endif
1638 1638
1639 } // namespace chrome 1639 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/printing/print_dialog_cloud.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698