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

Unified Diff: chrome/installer/gcapi_mac/gcapi.mm

Issue 10800052: More -Wunused-private-field cleanups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/mac/mock_launchd.cc ('k') | content/renderer/renderer_webapplicationcachehost_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/gcapi_mac/gcapi.mm
diff --git a/chrome/installer/gcapi_mac/gcapi.mm b/chrome/installer/gcapi_mac/gcapi.mm
index bb562899f888d0e3a67d4c5e85c32adb483a76ad..773944964be295f517eedb31d07f977f06199431 100644
--- a/chrome/installer/gcapi_mac/gcapi.mm
+++ b/chrome/installer/gcapi_mac/gcapi.mm
@@ -159,7 +159,7 @@ NSString* WriteData(NSData* data, NSString* system_path, NSString* user_path) {
// setuid root, and in that case the kSystemBrandPath path above should have
// worked anyway. So only try user if geteuid() isn't root.
if (geteuid() != 0) {
- NSString* user_path = [user_path stringByExpandingTildeInPath];
+ user_path = [user_path stringByExpandingTildeInPath];
if (CreatePathToFile(user_path) &&
[data writeToFile:user_path atomically:YES]) {
chmod([user_path fileSystemRepresentation], Permissions() & ~0111);
« no previous file with comments | « chrome/common/mac/mock_launchd.cc ('k') | content/renderer/renderer_webapplicationcachehost_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698