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

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

Issue 1679283002: Componentize Chrome terms of service, Accept-Languages & default encoding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase && use a qualified include for the new file Created 4 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
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 #include <stdint.h>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "chrome/common/chrome_constants.h" 22 #include "chrome/common/chrome_constants.h"
23 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
24 #include "chrome/common/chrome_switches.h" 24 #include "chrome/common/chrome_switches.h"
25 #include "chrome/grit/locale_settings.h" 25 #include "chrome/grit/locale_settings.h"
26 #include "chrome/installer/util/google_update_settings.h" 26 #include "chrome/installer/util/google_update_settings.h"
27 #include "chrome/installer/util/install_util.h" 27 #include "chrome/installer/util/install_util.h"
28 #include "chrome/installer/util/master_preferences.h" 28 #include "chrome/installer/util/master_preferences.h"
29 #include "chrome/installer/util/master_preferences_constants.h" 29 #include "chrome/installer/util/master_preferences_constants.h"
30 #include "chrome/installer/util/util_constants.h" 30 #include "chrome/installer/util/util_constants.h"
31 #include "components/strings/grit/components_locale_settings.h"
31 #include "content/public/browser/browser_thread.h" 32 #include "content/public/browser/browser_thread.h"
32 #include "ui/base/l10n/l10n_util.h" 33 #include "ui/base/l10n/l10n_util.h"
33 #include "ui/base/win/shell.h" 34 #include "ui/base/win/shell.h"
34 35
35 namespace { 36 namespace {
36 37
37 // Launches the setup exe with the given parameter/value on the command-line. 38 // Launches the setup exe with the given parameter/value on the command-line.
38 // For non-metro Windows, it waits for its termination, returns its exit code 39 // For non-metro Windows, it waits for its termination, returns its exit code
39 // in |*ret_code|, and returns true if the exit code is valid. 40 // in |*ret_code|, and returns true if the exit code is valid.
40 // For metro Windows, it launches setup via ShellExecuteEx and returns in order 41 // For metro Windows, it launches setup via ShellExecuteEx and returns in order
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 base::FilePath MasterPrefsPath() { 181 base::FilePath MasterPrefsPath() {
181 // The standard location of the master prefs is next to the chrome binary. 182 // The standard location of the master prefs is next to the chrome binary.
182 base::FilePath master_prefs; 183 base::FilePath master_prefs;
183 if (!PathService::Get(base::DIR_EXE, &master_prefs)) 184 if (!PathService::Get(base::DIR_EXE, &master_prefs))
184 return base::FilePath(); 185 return base::FilePath();
185 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); 186 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs);
186 } 187 }
187 188
188 } // namespace internal 189 } // namespace internal
189 } // namespace first_run 190 } // namespace first_run
OLDNEW
« no previous file with comments | « chrome/browser/android/preferences/pref_service_bridge.cc ('k') | chrome/browser/ui/prefs/prefs_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698