blob: 9ceab4971775a6961f17d6f48a1cd5acc5838ba5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/chrome_result_codes.h"
namespace chrome {
bool IsNormalResultCode(ResultCode code) {
// These result codes are normal exit, but are needed to signal to content
// that the process should terminate early. These result codes should be
// translated back to the normal exit code to indicate nothing went wrong
// here.
if (code == RESULT_CODE_NORMAL_EXIT_UPGRADE_RELAUNCHED ||
code == RESULT_CODE_NORMAL_EXIT_PACK_EXTENSION_SUCCESS ||
code == RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED) {
return true;
}
return false;
}
} // namespace chrome
|