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

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

Issue 2703463005: [wip-test] Test if any bot test calls utility zip creator IPC. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | 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/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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 #if BUILDFLAG(ENABLE_EXTENSIONS) 243 #if BUILDFLAG(ENABLE_EXTENSIONS)
244 extensions::ExtensionsHandler::PreSandboxStartup(); 244 extensions::ExtensionsHandler::PreSandboxStartup();
245 #endif 245 #endif
246 } 246 }
247 247
248 #if defined(OS_CHROMEOS) 248 #if defined(OS_CHROMEOS)
249 void ChromeContentUtilityClient::OnCreateZipFile( 249 void ChromeContentUtilityClient::OnCreateZipFile(
250 const base::FilePath& src_dir, 250 const base::FilePath& src_dir,
251 const std::vector<base::FilePath>& src_relative_paths, 251 const std::vector<base::FilePath>& src_relative_paths,
252 const base::FileDescriptor& dest_fd) { 252 const base::FileDescriptor& dest_fd) {
253
254 NOTREACHED(); // HACK to see what try bot tests call here.
255
253 // dest_fd should be closed in the function. See ipc/ipc_message_util.h for 256 // dest_fd should be closed in the function. See ipc/ipc_message_util.h for
254 // details. 257 // details.
255 base::ScopedFD fd_closer(dest_fd.fd); 258 base::ScopedFD fd_closer(dest_fd.fd);
256 bool succeeded = true; 259 bool succeeded = true;
257 260
258 // Check sanity of source relative paths. Reject if path is absolute or 261 // Check sanity of source relative paths. Reject if path is absolute or
259 // contains any attempt to reference a parent directory ("../" tricks). 262 // contains any attempt to reference a parent directory ("../" tricks).
260 for (std::vector<base::FilePath>::const_iterator iter = 263 for (std::vector<base::FilePath>::const_iterator iter =
261 src_relative_paths.begin(); iter != src_relative_paths.end(); 264 src_relative_paths.begin(); iter != src_relative_paths.end();
262 ++iter) { 265 ++iter) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 safe_browsing::zip_analyzer::Results results; 299 safe_browsing::zip_analyzer::Results results;
297 safe_browsing::dmg::AnalyzeDMGFile( 300 safe_browsing::dmg::AnalyzeDMGFile(
298 IPC::PlatformFileForTransitToFile(dmg_file), &results); 301 IPC::PlatformFileForTransitToFile(dmg_file), &results);
299 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( 302 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished(
300 results)); 303 results));
301 ReleaseProcessIfNeeded(); 304 ReleaseProcessIfNeeded();
302 } 305 }
303 #endif // defined(OS_MACOSX) 306 #endif // defined(OS_MACOSX)
304 307
305 #endif // defined(FULL_SAFE_BROWSING) 308 #endif // defined(FULL_SAFE_BROWSING)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698