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

Unified Diff: ios/chrome/browser/first_run/first_run.mm

Issue 1127073003: [iOS] Upstream FirstRun configuration and metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « ios/chrome/browser/first_run/OWNERS ('k') | ios/chrome/browser/first_run/first_run_configuration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/first_run/first_run.mm
diff --git a/ios/chrome/browser/first_run/first_run.mm b/ios/chrome/browser/first_run/first_run.mm
index 39de14250c5cf55d2e23f03847c261aac79de669..0f420bde7382bc932770578890c703c47806d67e 100644
--- a/ios/chrome/browser/first_run/first_run.mm
+++ b/ios/chrome/browser/first_run/first_run.mm
@@ -4,8 +4,6 @@
#include "ios/chrome/browser/first_run/first_run.h"
-#import <Foundation/Foundation.h>
-
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/path_service.h"
@@ -15,7 +13,7 @@
namespace {
// The absence of kSentinelFile file will tell us it is a first run.
-const char kSentinelFile[] = "First Run";
+const base::FilePath::CharType kSentinelFile[] = FILE_PATH_LITERAL("First Run");
// RLZ ping delay pref name.
const char kPingDelayPrefName[] = "distribution.ping_delay";
@@ -29,7 +27,7 @@ bool FirstRun::GetFirstRunSentinelFilePath(base::FilePath* path) {
base::FilePath first_run_sentinel;
if (!PathService::Get(ios::DIR_USER_DATA, &first_run_sentinel))
return false;
- *path = first_run_sentinel.AppendASCII(kSentinelFile);
+ *path = first_run_sentinel.Append(kSentinelFile);
return true;
}
« no previous file with comments | « ios/chrome/browser/first_run/OWNERS ('k') | ios/chrome/browser/first_run/first_run_configuration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698