Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 kStageCreateVisualManifest[] = L"creating_visual_manifest"; | |
|
grt (UTC plus 2)
2012/05/03 19:37:58
Create -> Creating
gab
2012/05/03 19:50:24
Done.
| |
| 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 kStageCreateVisualManifest, | |
|
grt (UTC plus 2)
2012/05/03 19:37:58
Create -> Creating
gab
2012/05/03 19:50:24
Done.
| |
| 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 Loading... | |
| 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 } |
| OLD | NEW |