/**
* Records the tab restore result into several UMA histograms.
* @param succeeded Whether or not the tab restore succeeded.
* @param time The time taken to perform the tab restore.
* @param perceivedTime The perceived time taken to perform the tab restore.
* @param errorCode The error code, on failure (as denoted by the |succeeded| parameter).
*/
private void recordTabRestoreResult(boolean succeeded, long time, long perceivedTime,
int errorCode) {
if (succeeded) {
RecordHistogram.recordEnumeratedHistogram(
"Tab.RestoreResult", TAB_RESTORE_RESULT_SUCCESS, TAB_RESTORE_RESULT_COUNT);
RecordHistogram.recordCountHistogram("Tab.RestoreTime", (int) time);
RecordHistogram.recordCountHistogram("Tab.PerceivedRestoreTime", (int) perceivedTime);
} else {
switch (er