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

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

Issue 10826188: Sharing shell_util_unittest code to verify shortcuts (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/installer/util/shell_util.cc » ('j') | chrome/installer/util/shell_util.cc » ('J')
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 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 // should call GetCurrentInstallationSuffix(). 435 // should call GetCurrentInstallationSuffix().
436 static bool GetOldUserSpecificRegistrySuffix(string16* suffix); 436 static bool GetOldUserSpecificRegistrySuffix(string16* suffix);
437 437
438 // Returns the base32 encoding (using the [A-Z2-7] alphabet) of |bytes|. 438 // Returns the base32 encoding (using the [A-Z2-7] alphabet) of |bytes|.
439 // |size| is the length of |bytes|. 439 // |size| is the length of |bytes|.
440 // Note: This method does not suffix the output with '=' signs as technically 440 // Note: This method does not suffix the output with '=' signs as technically
441 // required by the base32 standard for inputs that aren't a multiple of 5 441 // required by the base32 standard for inputs that aren't a multiple of 5
442 // bytes. 442 // bytes.
443 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); 443 static string16 ByteArrayToBase32(const uint8* bytes, size_t size);
444 444
445 // Verify that a shortcut exists with the expected information.
446 // |exe_path| shortcut's exe
gab 2012/08/08 19:17:08 nit: Please all of these descriptions complete sen
Halli 2012/08/08 20:28:09 Done.
447 // |shortcut| path to shortcut
448 // |description| shortcut's description
449 // |icon_index| The icon's index in the exe.
450 static bool VerifyChromeShortcut(const string16& exe_path,
451 const string16& shortcut,
452 const string16& description,
453 int icon_index);
445 private: 454 private:
446 DISALLOW_COPY_AND_ASSIGN(ShellUtil); 455 DISALLOW_COPY_AND_ASSIGN(ShellUtil);
447 }; 456 };
448 457
449 458
450 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 459 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/util/shell_util.cc » ('j') | chrome/installer/util/shell_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698