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

Side by Side Diff: chrome/browser/first_run/first_run_internal_win.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (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 #include "chrome/browser/first_run/first_run_internal.h" 5 #include "chrome/browser/first_run/first_run_internal.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <stdint.h>
9 10
10 #include "base/base_paths.h" 11 #include "base/base_paths.h"
11 #include "base/callback.h" 12 #include "base/callback.h"
12 #include "base/command_line.h" 13 #include "base/command_line.h"
13 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
14 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
15 #include "base/path_service.h" 16 #include "base/path_service.h"
16 #include "base/process/kill.h" 17 #include "base/process/kill.h"
17 #include "base/process/launch.h" 18 #include "base/process/launch.h"
18 #include "base/process/process.h" 19 #include "base/process/process.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 118
118 namespace first_run { 119 namespace first_run {
119 namespace internal { 120 namespace internal {
120 121
121 void DoPostImportPlatformSpecificTasks(Profile* /* profile */) { 122 void DoPostImportPlatformSpecificTasks(Profile* /* profile */) {
122 // Trigger the Active Setup command for system-level Chromes to finish 123 // Trigger the Active Setup command for system-level Chromes to finish
123 // configuring this user's install (e.g. per-user shortcuts). 124 // configuring this user's install (e.g. per-user shortcuts).
124 // Delay the task slightly to give Chrome launch I/O priority while also 125 // Delay the task slightly to give Chrome launch I/O priority while also
125 // making sure shortcuts are created promptly to avoid annoying the user by 126 // making sure shortcuts are created promptly to avoid annoying the user by
126 // re-creating shortcuts he previously deleted. 127 // re-creating shortcuts he previously deleted.
127 static const int64 kTiggerActiveSetupDelaySeconds = 5; 128 static const int64_t kTiggerActiveSetupDelaySeconds = 5;
128 base::FilePath chrome_exe; 129 base::FilePath chrome_exe;
129 if (!PathService::Get(base::FILE_EXE, &chrome_exe)) { 130 if (!PathService::Get(base::FILE_EXE, &chrome_exe)) {
130 NOTREACHED(); 131 NOTREACHED();
131 } else if (!InstallUtil::IsPerUserInstall(chrome_exe)) { 132 } else if (!InstallUtil::IsPerUserInstall(chrome_exe)) {
132 content::BrowserThread::GetBlockingPool()->PostDelayedTask( 133 content::BrowserThread::GetBlockingPool()->PostDelayedTask(
133 FROM_HERE, 134 FROM_HERE,
134 base::Bind(&InstallUtil::TriggerActiveSetupCommand), 135 base::Bind(&InstallUtil::TriggerActiveSetupCommand),
135 base::TimeDelta::FromSeconds(kTiggerActiveSetupDelaySeconds)); 136 base::TimeDelta::FromSeconds(kTiggerActiveSetupDelaySeconds));
136 } 137 }
137 } 138 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 base::FilePath MasterPrefsPath() { 195 base::FilePath MasterPrefsPath() {
195 // The standard location of the master prefs is next to the chrome binary. 196 // The standard location of the master prefs is next to the chrome binary.
196 base::FilePath master_prefs; 197 base::FilePath master_prefs;
197 if (!PathService::Get(base::DIR_EXE, &master_prefs)) 198 if (!PathService::Get(base::DIR_EXE, &master_prefs))
198 return base::FilePath(); 199 return base::FilePath();
199 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); 200 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs);
200 } 201 }
201 202
202 } // namespace internal 203 } // namespace internal
203 } // namespace first_run 204 } // namespace first_run
OLDNEW
« no previous file with comments | « chrome/browser/first_run/first_run_browsertest.cc ('k') | chrome/browser/first_run/first_run_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698