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

Side by Side Diff: chrome/installer/util/install_util.cc

Issue 10160011: Create VisualElementsManifest.xml from template -- install VisualElements in the version directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: single \n at EOF Created 8 years, 7 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 | « chrome/installer/setup/setup_constants.cc ('k') | chrome/installer/util/util_constants.h » ('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 // See the corresponding header file for description of the functions in this 5 // See the corresponding header file for description of the functions in this
6 // file. 6 // file.
7 7
8 #include "chrome/installer/util/install_util.h" 8 #include "chrome/installer/util/install_util.h"
9 9
10 #include <shellapi.h> 10 #include <shellapi.h>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const wchar_t kStageExecuting[] = L"executing"; 45 const wchar_t kStageExecuting[] = L"executing";
46 const wchar_t kStageFinishing[] = L"finishing"; 46 const wchar_t kStageFinishing[] = L"finishing";
47 const wchar_t kStagePreconditions[] = L"preconditions"; 47 const wchar_t kStagePreconditions[] = L"preconditions";
48 const wchar_t kStageRefreshingPolicy[] = L"refreshing_policy"; 48 const wchar_t kStageRefreshingPolicy[] = L"refreshing_policy";
49 const wchar_t kStageRegisteringChrome[] = L"registering_chrome"; 49 const wchar_t kStageRegisteringChrome[] = L"registering_chrome";
50 const wchar_t kStageRemovingOldVersions[] = L"removing_old_ver"; 50 const wchar_t kStageRemovingOldVersions[] = L"removing_old_ver";
51 const wchar_t kStageRollingback[] = L"rollingback"; 51 const wchar_t kStageRollingback[] = L"rollingback";
52 const wchar_t kStageUncompressing[] = L"uncompressing"; 52 const wchar_t kStageUncompressing[] = L"uncompressing";
53 const wchar_t kStageUnpacking[] = L"unpacking"; 53 const wchar_t kStageUnpacking[] = L"unpacking";
54 const wchar_t kStageUpdatingChannels[] = L"updating_channels"; 54 const wchar_t kStageUpdatingChannels[] = L"updating_channels";
55 const wchar_t kStageCreatingVisualManifest[] = L"creating_visual_manifest";
55 56
56 const wchar_t* const kStages[] = { 57 const wchar_t* const kStages[] = {
57 NULL, 58 NULL,
58 kStagePreconditions, 59 kStagePreconditions,
59 kStageUncompressing, 60 kStageUncompressing,
60 kStageEnsemblePatching, 61 kStageEnsemblePatching,
61 kStageBinaryPatching, 62 kStageBinaryPatching,
62 kStageUnpacking, 63 kStageUnpacking,
63 kStageBuilding, 64 kStageBuilding,
64 kStageExecuting, 65 kStageExecuting,
65 kStageRollingback, 66 kStageRollingback,
66 kStageRefreshingPolicy, 67 kStageRefreshingPolicy,
67 kStageUpdatingChannels, 68 kStageUpdatingChannels,
68 kStageCopyingPreferencesFile, 69 kStageCopyingPreferencesFile,
69 kStageCreatingShortcuts, 70 kStageCreatingShortcuts,
70 kStageRegisteringChrome, 71 kStageRegisteringChrome,
71 kStageRemovingOldVersions, 72 kStageRemovingOldVersions,
72 kStageFinishing, 73 kStageFinishing,
73 kStageConfiguringAutoLaunch, 74 kStageConfiguringAutoLaunch,
75 kStageCreatingVisualManifest,
74 }; 76 };
75 77
76 COMPILE_ASSERT(installer::NUM_STAGES == arraysize(kStages), 78 COMPILE_ASSERT(installer::NUM_STAGES == arraysize(kStages),
77 kStages_disagrees_with_Stage_comma_they_must_match_bang); 79 kStages_disagrees_with_Stage_comma_they_must_match_bang);
78 80
79 // Creates a zero-sized non-decorated foreground window that doesn't appear 81 // Creates a zero-sized non-decorated foreground window that doesn't appear
80 // in the taskbar. This is used as a parent window for calls to ShellExecuteEx 82 // in the taskbar. This is used as a parent window for calls to ShellExecuteEx
81 // in order for the UAC dialog to appear in the foreground and for focus 83 // in order for the UAC dialog to appear in the foreground and for focus
82 // to be returned to this process once the UAC task is dismissed. Returns 84 // to be returned to this process once the UAC task is dismissed. Returns
83 // NULL on failure, a handle to the UAC window on success. 85 // NULL on failure, a handle to the UAC window on success.
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 int len = GetDateFormatW(LOCALE_INVARIANT, 0, NULL, kDateFormat, 473 int len = GetDateFormatW(LOCALE_INVARIANT, 0, NULL, kDateFormat,
472 date_str, arraysize(date_str)); 474 date_str, arraysize(date_str));
473 if (len) { 475 if (len) {
474 --len; // Subtract terminating \0. 476 --len; // Subtract terminating \0.
475 } else { 477 } else {
476 PLOG(DFATAL) << "GetDateFormat"; 478 PLOG(DFATAL) << "GetDateFormat";
477 } 479 }
478 480
479 return std::wstring(date_str, len); 481 return std::wstring(date_str, len);
480 } 482 }
OLDNEW
« no previous file with comments | « chrome/installer/setup/setup_constants.cc ('k') | chrome/installer/util/util_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698