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

Side by Side Diff: chrome/tools/mac_helpers/infoplist_strings_util.mm

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 // Helper tool that is built and run during a build to pull strings from 5 // Helper tool that is built and run during a build to pull strings from
6 // the GRD files and generate the InfoPlist.strings files needed for 6 // the GRD files and generate the InfoPlist.strings files needed for
7 // Mac OS X app bundles. 7 // Mac OS X app bundles.
8 8
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 #include <stdint.h>
10 11
11 #include <stdio.h> 12 #include <stdio.h>
12 #include <unistd.h> 13 #include <unistd.h>
13 14
14 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
15 #include "base/files/file_util.h" 16 #include "base/files/file_util.h"
16 #include "base/mac/scoped_nsautorelease_pool.h" 17 #include "base/mac/scoped_nsautorelease_pool.h"
17 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
18 #include "base/strings/string_number_conversions.h" 19 #include "base/strings/string_number_conversions.h"
19 #include "base/strings/string_piece.h" 20 #include "base/strings/string_piece.h"
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 [output_path stringByAppendingPathComponent:@"InfoPlist.strings"]; 328 [output_path stringByAppendingPathComponent:@"InfoPlist.strings"];
328 if (![strings_file_contents_utf8 writeToFile:output_path 329 if (![strings_file_contents_utf8 writeToFile:output_path
329 atomically:YES]) { 330 atomically:YES]) {
330 fprintf(stderr, "ERROR: Failed to write out '%s'\n", 331 fprintf(stderr, "ERROR: Failed to write out '%s'\n",
331 [output_path UTF8String]); 332 [output_path UTF8String]);
332 exit(1); 333 exit(1);
333 } 334 }
334 } 335 }
335 return 0; 336 return 0;
336 } 337 }
OLDNEW
« no previous file with comments | « chrome/tools/crash_service/caps/logger_win.cc ('k') | chrome/tools/service_discovery_sniffer/service_discovery_sniffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698