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

Unified Diff: chrome/installer/setup/update_per_user_shortcuts_in_location.h

Issue 1780693002: Fix the path of Chrome shortcuts from the installer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/installer/setup/update_per_user_shortcuts_in_location.h
diff --git a/chrome/installer/setup/update_per_user_shortcuts_in_location.h b/chrome/installer/setup/update_per_user_shortcuts_in_location.h
new file mode 100644
index 0000000000000000000000000000000000000000..199f5b64f4890a7588740e44dc44b09b75518cee
--- /dev/null
+++ b/chrome/installer/setup/update_per_user_shortcuts_in_location.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_INSTALLER_SETUP_UPDATE_PER_USER_SHORTCUTS_IN_LOCATION_H_
+#define CHROME_INSTALLER_SETUP_UPDATE_PER_USER_SHORTCUTS_IN_LOCATION_H_
+
+#include "chrome/installer/util/shell_util.h"
+
+namespace base {
+class FilePath;
+}
+
+class BrowserDistribution;
+
+namespace installer {
+
+// Sets |new_target_path| as the new target path of all shortcuts having an
+// existing target path starting with |old_target_path_prefix| and ending with
+// |old_target_path_suffix| in the location specified by |shortcut_location| and
+// |dist|.
+void UpdatePerUserShortcutsInLocation(
gab 2016/03/10 06:01:03 Actually, given this is not used from anywhere els
fdoray 2016/03/10 14:32:46 Done.
+ const ShellUtil::ShortcutLocation shortcut_location,
+ BrowserDistribution* dist,
+ const base::FilePath& old_target_path_prefix,
+ const base::FilePath& old_target_path_suffix,
+ const base::FilePath& new_target_path);
+
+} // namespace installer
+
+#endif // CHROME_INSTALLER_SETUP_UPDATE_PER_USER_SHORTCUTS_IN_LOCATION_H_

Powered by Google App Engine
This is Rietveld 408576698