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

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
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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 } 402 }
403 403
404 void ChromeContentBrowserClient::RenderProcessHostCreated( 404 void ChromeContentBrowserClient::RenderProcessHostCreated(
405 content::RenderProcessHost* host) { 405 content::RenderProcessHost* host) {
406 int id = host->GetID(); 406 int id = host->GetID();
407 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); 407 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext());
408 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( 408 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter(
409 id, profile, profile->GetRequestContextForRenderProcess(id))); 409 id, profile, profile->GetRequestContextForRenderProcess(id)));
410 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); 410 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile));
411 #if !defined(OS_ANDROID) 411 #if !defined(OS_ANDROID)
412 host->GetChannel()->AddFilter(new PrintingMessageFilter()); 412 host->GetChannel()->AddFilter(new PrintingMessageFilter(id));
413 #endif 413 #endif
414 host->GetChannel()->AddFilter( 414 host->GetChannel()->AddFilter(
415 new SearchProviderInstallStateMessageFilter(id, profile)); 415 new SearchProviderInstallStateMessageFilter(id, profile));
416 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); 416 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id));
417 #if defined(OS_MACOSX) 417 #if defined(OS_MACOSX)
418 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); 418 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac());
419 #endif 419 #endif
420 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( 420 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter(
421 id, profile, profile->GetRequestContextForRenderProcess(id))); 421 id, profile, profile->GetRequestContextForRenderProcess(id)));
422 host->GetChannel()->AddFilter( 422 host->GetChannel()->AddFilter(
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 #if defined(USE_NSS) 1618 #if defined(USE_NSS)
1619 crypto::CryptoModuleBlockingPasswordDelegate* 1619 crypto::CryptoModuleBlockingPasswordDelegate*
1620 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 1620 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
1621 const GURL& url) { 1621 const GURL& url) {
1622 return browser::NewCryptoModuleBlockingDialogDelegate( 1622 return browser::NewCryptoModuleBlockingDialogDelegate(
1623 browser::kCryptoModulePasswordKeygen, url.host()); 1623 browser::kCryptoModulePasswordKeygen, url.host());
1624 } 1624 }
1625 #endif 1625 #endif
1626 1626
1627 } // namespace chrome 1627 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698