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

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

Issue 448033002: Eliminate the dependency of Profile from TtsMessageFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace Profile by BrowserContext and Fix indents Created 6 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
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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 #endif 793 #endif
794 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); 794 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile));
795 #if defined(ENABLE_SPELLCHECK) 795 #if defined(ENABLE_SPELLCHECK)
796 host->AddFilter(new SpellCheckMessageFilter(id)); 796 host->AddFilter(new SpellCheckMessageFilter(id));
797 #endif 797 #endif
798 #if defined(OS_MACOSX) 798 #if defined(OS_MACOSX)
799 host->AddFilter(new SpellCheckMessageFilterMac(id)); 799 host->AddFilter(new SpellCheckMessageFilterMac(id));
800 #endif 800 #endif
801 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); 801 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context));
802 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); 802 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile));
803 host->AddFilter(new TtsMessageFilter(id, profile)); 803 host->AddFilter(new TtsMessageFilter(id, host->GetBrowserContext()));
804 #if defined(ENABLE_WEBRTC) 804 #if defined(ENABLE_WEBRTC)
805 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = 805 WebRtcLoggingHandlerHost* webrtc_logging_handler_host =
806 new WebRtcLoggingHandlerHost(profile); 806 new WebRtcLoggingHandlerHost(profile);
807 host->SetWebRtcLogMessageCallback(base::Bind( 807 host->SetWebRtcLogMessageCallback(base::Bind(
808 &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host)); 808 &WebRtcLoggingHandlerHost::LogMessage, webrtc_logging_handler_host));
809 host->AddFilter(webrtc_logging_handler_host); 809 host->AddFilter(webrtc_logging_handler_host);
810 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( 810 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>(
811 webrtc_logging_handler_host)); 811 webrtc_logging_handler_host));
812 #endif 812 #endif
813 #if !defined(DISABLE_NACL) 813 #if !defined(DISABLE_NACL)
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after
2598 switches::kDisableWebRtcEncryption, 2598 switches::kDisableWebRtcEncryption,
2599 }; 2599 };
2600 to_command_line->CopySwitchesFrom(from_command_line, 2600 to_command_line->CopySwitchesFrom(from_command_line,
2601 kWebRtcDevSwitchNames, 2601 kWebRtcDevSwitchNames,
2602 arraysize(kWebRtcDevSwitchNames)); 2602 arraysize(kWebRtcDevSwitchNames));
2603 } 2603 }
2604 } 2604 }
2605 #endif // defined(ENABLE_WEBRTC) 2605 #endif // defined(ENABLE_WEBRTC)
2606 2606
2607 } // namespace chrome 2607 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698