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

Side by Side Diff: chrome/utility/chrome_content_utility_client.cc

Issue 2079233004: Add the Windows.IsPinnedToTaskbar metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/utility/chrome_content_utility_client.h" 5 #include "chrome/utility/chrome_content_utility_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 20 matching lines...) Expand all
31 31
32 #if !defined(OS_ANDROID) 32 #if !defined(OS_ANDROID)
33 #include "chrome/common/resource_usage_reporter.mojom.h" 33 #include "chrome/common/resource_usage_reporter.mojom.h"
34 #include "chrome/utility/profile_import_handler.h" 34 #include "chrome/utility/profile_import_handler.h"
35 #include "mojo/public/cpp/bindings/strong_binding.h" 35 #include "mojo/public/cpp/bindings/strong_binding.h"
36 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" 36 #include "net/proxy/mojo_proxy_resolver_factory_impl.h"
37 #include "net/proxy/proxy_resolver_v8.h" 37 #include "net/proxy/proxy_resolver_v8.h"
38 #endif 38 #endif
39 39
40 #if defined(OS_WIN) 40 #if defined(OS_WIN)
41 #include "chrome/utility/shell_handler_impl_win.h"
41 #include "chrome/utility/shell_handler_win.h" 42 #include "chrome/utility/shell_handler_win.h"
42 #endif 43 #endif
43 44
44 #if defined(ENABLE_EXTENSIONS) 45 #if defined(ENABLE_EXTENSIONS)
45 #include "chrome/utility/extensions/extensions_handler.h" 46 #include "chrome/utility/extensions/extensions_handler.h"
46 #include "chrome/utility/image_writer/image_writer_handler.h" 47 #include "chrome/utility/image_writer/image_writer_handler.h"
47 #endif 48 #endif
48 49
49 #if defined(ENABLE_PRINT_PREVIEW) || \ 50 #if defined(ENABLE_PRINT_PREVIEW) || \
50 (defined(ENABLE_BASIC_PRINTING) && defined(OS_WIN)) 51 (defined(ENABLE_BASIC_PRINTING) && defined(OS_WIN))
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 if (filter_messages_) 202 if (filter_messages_)
202 return; 203 return;
203 204
204 #if !defined(OS_ANDROID) 205 #if !defined(OS_ANDROID)
205 registry->AddService<net::interfaces::ProxyResolverFactory>( 206 registry->AddService<net::interfaces::ProxyResolverFactory>(
206 base::Bind(CreateProxyResolverFactory)); 207 base::Bind(CreateProxyResolverFactory));
207 registry->AddService(base::Bind(CreateResourceUsageReporter)); 208 registry->AddService(base::Bind(CreateResourceUsageReporter));
208 #endif 209 #endif
209 registry->AddService(base::Bind(&CreateImageDecoder)); 210 registry->AddService(base::Bind(&CreateImageDecoder));
210 registry->AddService(base::Bind(&safe_json::SafeJsonParserMojoImpl::Create)); 211 registry->AddService(base::Bind(&safe_json::SafeJsonParserMojoImpl::Create));
212 #if defined(OS_WIN)
213 registry->AddService(base::Bind(&ShellHandlerImpl::Create));
214 #endif
211 } 215 }
212 216
213 void ChromeContentUtilityClient::AddHandler( 217 void ChromeContentUtilityClient::AddHandler(
214 std::unique_ptr<UtilityMessageHandler> handler) { 218 std::unique_ptr<UtilityMessageHandler> handler) {
215 handlers_.push_back(std::move(handler)); 219 handlers_.push_back(std::move(handler));
216 } 220 }
217 221
218 // static 222 // static
219 void ChromeContentUtilityClient::PreSandboxStartup() { 223 void ChromeContentUtilityClient::PreSandboxStartup() {
220 #if defined(ENABLE_EXTENSIONS) 224 #if defined(ENABLE_EXTENSIONS)
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 safe_browsing::zip_analyzer::Results results; 308 safe_browsing::zip_analyzer::Results results;
305 safe_browsing::dmg::AnalyzeDMGFile( 309 safe_browsing::dmg::AnalyzeDMGFile(
306 IPC::PlatformFileForTransitToFile(dmg_file), &results); 310 IPC::PlatformFileForTransitToFile(dmg_file), &results);
307 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( 311 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished(
308 results)); 312 results));
309 ReleaseProcessIfNeeded(); 313 ReleaseProcessIfNeeded();
310 } 314 }
311 #endif // defined(OS_MACOSX) 315 #endif // defined(OS_MACOSX)
312 316
313 #endif // defined(FULL_SAFE_BROWSING) 317 #endif // defined(FULL_SAFE_BROWSING)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698