| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
case personal_context::ContextMemoryError::ExecutionError::kCancelled:
NOTREACHED();Why it's set to NOTREACHED()? It's the case when The request was cancelled by the client. I think it's better to return MemorySearchStatus::kDataFetchFailure, than to risk a random crash.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
case personal_context::ContextMemoryError::ExecutionError::kCancelled:
NOTREACHED();Why it's set to NOTREACHED()? It's the case when The request was cancelled by the client. I think it's better to return MemorySearchStatus::kDataFetchFailure, than to risk a random crash.
Good point, I guess right now I added it since it is not possible, but given that this helper may be used by others your suggestion is better. Thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
2 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: components/accessibility_annotator/core/accessibility_query_service.cc
Insertions: 1, Deletions: 3.
@@ -17,7 +17,6 @@
#include "base/functional/bind.h"
#include "base/i18n/break_iterator.h"
#include "base/metrics/histogram_functions.h"
-#include "base/notreached.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "components/accessibility_annotator/core/annotation_reducer/memory_data_provider.h"
@@ -118,6 +117,7 @@
case personal_context::ContextMemoryError::ExecutionError::kRetryableError:
case personal_context::ContextMemoryError::ExecutionError::
kNonRetryableError:
+ case personal_context::ContextMemoryError::ExecutionError::kCancelled:
return MemorySearchStatus::kDataFetchFailure;
case personal_context::ContextMemoryError::ExecutionError::
kResponseParseError:
@@ -125,8 +125,6 @@
case personal_context::ContextMemoryError::ExecutionError::kGenericFailure:
case personal_context::ContextMemoryError::ExecutionError::kUnknown:
return MemorySearchStatus::kInternalFailure;
- case personal_context::ContextMemoryError::ExecutionError::kCancelled:
- NOTREACHED();
}
}
```
[AtMemory] Add PersonalContextService error handling
This CL causes relevant UI elements to appear when
PersonalContextService request failed.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |