| Index: chrome/common/chrome_result_codes.h
|
| diff --git a/chrome/common/chrome_result_codes.h b/chrome/common/chrome_result_codes.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b3808510a37d330552336109f650ce011fe4b681
|
| --- /dev/null
|
| +++ b/chrome/common/chrome_result_codes.h
|
| @@ -0,0 +1,78 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_COMMON_CHROME_RESULT_CODES_H_
|
| +#define CHROME_COMMON_CHROME_RESULT_CODES_H_
|
| +#pragma once
|
| +
|
| +#include "content/common/result_codes.h"
|
| +
|
| +namespace chrome {
|
| +
|
| +enum ResultCode {
|
| + RESULT_CODE_CHROME_START = content::RESULT_CODE_LAST_CODE,
|
| +
|
| + // An invalid command line url was given.
|
| + RESULT_CODE_INVALID_CMDLINE_URL = RESULT_CODE_CHROME_START,
|
| +
|
| + // The process is of an unknown type.
|
| + RESULT_CODE_BAD_PROCESS_TYPE,
|
| +
|
| + // A critical chrome file is missing.
|
| + RESULT_CODE_MISSING_DATA,
|
| +
|
| + // Failed to make Chrome default browser (not used?).
|
| + RESULT_CODE_SHELL_INTEGRATION_FAILED,
|
| +
|
| + // Machine level install exists
|
| + RESULT_CODE_MACHINE_LEVEL_INSTALL_EXISTS,
|
| +
|
| + // Uninstall detected another chrome instance.
|
| + RESULT_CODE_UNINSTALL_CHROME_ALIVE,
|
| +
|
| + // The user changed their mind.
|
| + RESULT_CODE_UNINSTALL_USER_CANCEL,
|
| +
|
| + // Delete profile as well during uninstall.
|
| + RESULT_CODE_UNINSTALL_DELETE_PROFILE,
|
| +
|
| + // Command line parameter is not supported.
|
| + RESULT_CODE_UNSUPPORTED_PARAM,
|
| +
|
| + // Browser import hung and was killed.
|
| + RESULT_CODE_IMPORTER_HUNG,
|
| +
|
| + // Trying to restart the browser we crashed.
|
| + RESULT_CODE_RESPAWN_FAILED,
|
| +
|
| + // The EXP1, EXP2, EXP3, EXP4 are generic codes used to communicate some
|
| + // simple outcome back to the process that launched us. This is used for
|
| + // experiments and the actual meaning depends on the experiment.
|
| + // (only EXP2 is used?)
|
| + RESULT_CODE_NORMAL_EXIT_EXP1,
|
| + RESULT_CODE_NORMAL_EXIT_EXP2,
|
| + RESULT_CODE_NORMAL_EXIT_EXP3,
|
| + RESULT_CODE_NORMAL_EXIT_EXP4,
|
| +
|
| + // For experiments this return code means that the user canceled causes the
|
| + // did_run "dr" signal to be reset soi this chrome run does not count as
|
| + // active chrome usage.
|
| + RESULT_CODE_NORMAL_EXIT_CANCEL,
|
| +
|
| + // The profile was in use on another host.
|
| + RESULT_CODE_PROFILE_IN_USE,
|
| +
|
| + // Failed to pack an extension via the cmd line.
|
| + RESULT_CODE_PACK_EXTENSION_ERROR,
|
| +
|
| + // Failed to silently uninstall an extension.
|
| + RESULT_CODE_UNINSTALL_EXTENSION_ERROR,
|
| +
|
| + // Last return code (keep this last).
|
| + RESULT_CODE_CHROME_LAST_CODE,
|
| +};
|
| +
|
| +} // namespace chrome
|
| +
|
| +#endif // CHROME_COMMON_CHROME_RESULT_CODES_H_
|
|
|