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

Side by Side Diff: chrome/installer/util/shell_util.h

Issue 15255004: Refactor of BrowserDistribution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 7 years, 5 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 // This file declares methods that are useful for integrating Chrome in 5 // This file declares methods that are useful for integrating Chrome in
6 // Windows shell. These methods are all static and currently part of 6 // Windows shell. These methods are all static and currently part of
7 // ShellUtil class. 7 // ShellUtil class.
8 8
9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 options |= PROPERTIES_ICON; 120 options |= PROPERTIES_ICON;
121 } 121 }
122 122
123 // Sets the app model id for the shortcut (Win7+). 123 // Sets the app model id for the shortcut (Win7+).
124 void set_app_id(const string16& app_id_in) { 124 void set_app_id(const string16& app_id_in) {
125 app_id = app_id_in; 125 app_id = app_id_in;
126 options |= PROPERTIES_APP_ID; 126 options |= PROPERTIES_APP_ID;
127 } 127 }
128 128
129 // Forces the shortcut's name to |shortcut_name_in|. 129 // Forces the shortcut's name to |shortcut_name_in|.
130 // Default: the current distribution's GetAppShortcutName(). 130 // Default: the current distribution's GetShortcutName(SHORTCUT_CHROME).
131 // The ".lnk" extension will automatically be added to this name. 131 // The ".lnk" extension will automatically be added to this name.
132 void set_shortcut_name(const string16& shortcut_name_in) { 132 void set_shortcut_name(const string16& shortcut_name_in) {
133 shortcut_name = shortcut_name_in; 133 shortcut_name = shortcut_name_in;
134 options |= PROPERTIES_SHORTCUT_NAME; 134 options |= PROPERTIES_SHORTCUT_NAME;
135 } 135 }
136 136
137 // Sets whether this is a dual mode shortcut (Win8+). 137 // Sets whether this is a dual mode shortcut (Win8+).
138 // NOTE: Only the default (no arguments and default browser appid) browser 138 // NOTE: Only the default (no arguments and default browser appid) browser
139 // shortcut in the Start menu (Start screen on Win8+) should be made dual 139 // shortcut in the Start menu (Start screen on Win8+) should be made dual
140 // mode. 140 // mode.
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 // required by the base32 standard for inputs that aren't a multiple of 5 565 // required by the base32 standard for inputs that aren't a multiple of 5
566 // bytes. 566 // bytes.
567 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); 567 static string16 ByteArrayToBase32(const uint8* bytes, size_t size);
568 568
569 private: 569 private:
570 DISALLOW_COPY_AND_ASSIGN(ShellUtil); 570 DISALLOW_COPY_AND_ASSIGN(ShellUtil);
571 }; 571 };
572 572
573 573
574 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 574 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698