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

Side by Side Diff: chrome/installer/setup/install.h

Issue 12398024: Do not try to make Chrome default when registering it if it can't be made default unattended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/installer/setup/install.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file contains the specification of setup main functions. 5 // This file contains the specification of setup main functions.
6 6
7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_
8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // If creating the Start menu shortcut is successful, it is also pinned to the 73 // If creating the Start menu shortcut is successful, it is also pinned to the
74 // taskbar. 74 // taskbar.
75 void CreateOrUpdateShortcuts( 75 void CreateOrUpdateShortcuts(
76 const base::FilePath& target, 76 const base::FilePath& target,
77 const Product& product, 77 const Product& product,
78 const MasterPreferences& prefs, 78 const MasterPreferences& prefs,
79 InstallShortcutLevel install_level, 79 InstallShortcutLevel install_level,
80 InstallShortcutOperation install_operation); 80 InstallShortcutOperation install_operation);
81 81
82 // Registers Chrome on this machine. 82 // Registers Chrome on this machine.
83 // If |make_chrome_default|, also attempts to make Chrome default (potentially 83 // If |make_chrome_default|, also attempts to make Chrome default where doing so
84 // popping a UAC if the user is not an admin and HKLM registrations are required 84 // requires no more user interaction than a UAC prompt. In practice, this means
85 // to register Chrome's capabilities on this version of Windows (i.e. 85 // on versions of Windows prior to Windows 8.
86 // pre-Win8)).
87 void RegisterChromeOnMachine(const InstallerState& installer_state, 86 void RegisterChromeOnMachine(const InstallerState& installer_state,
88 const Product& product, 87 const Product& product,
89 bool make_chrome_default); 88 bool make_chrome_default);
90 89
91 // This function installs or updates a new version of Chrome. It returns 90 // This function installs or updates a new version of Chrome. It returns
92 // install status (failed, new_install, updated etc). 91 // install status (failed, new_install, updated etc).
93 // 92 //
94 // setup_path: Path to the executable (setup.exe) as it will be copied 93 // setup_path: Path to the executable (setup.exe) as it will be copied
95 // to Chrome install folder after install is complete 94 // to Chrome install folder after install is complete
96 // archive_path: Path to the archive (chrome.7z) as it will be copied 95 // archive_path: Path to the archive (chrome.7z) as it will be copied
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 bool force); 133 bool force);
135 134
136 // Launches app_host.exe to install content from web store (non-blocking). 135 // Launches app_host.exe to install content from web store (non-blocking).
137 // Returns true on successful execution (although successful installation 136 // Returns true on successful execution (although successful installation
138 // is not guaranteed). 137 // is not guaranteed).
139 bool InstallFromWebstore(const std::string& app_code); 138 bool InstallFromWebstore(const std::string& app_code);
140 139
141 } // namespace installer 140 } // namespace installer
142 141
143 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ 142 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/setup/install.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698