Index: ios/chrome/browser/ui/first_run/static_file_view_controller.mm |
diff --git a/ios/chrome/browser/ui/first_run/static_file_view_controller.mm b/ios/chrome/browser/ui/first_run/static_file_view_controller.mm |
index 369929a4bbb532daeb91b067f4a9bd9c693356dc..9e538e34a6dc572f8430762792e83cb5b2311652 100644 |
--- a/ios/chrome/browser/ui/first_run/static_file_view_controller.mm |
+++ b/ios/chrome/browser/ui/first_run/static_file_view_controller.mm |
@@ -8,6 +8,7 @@ |
#include "base/logging.h" |
#include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
+#import "ios/chrome/browser/ui/icons/chrome_icon.h" |
#import "ios/chrome/browser/ui/material_components/utils.h" |
#include "ios/chrome/browser/ui/rtl_geometry.h" |
#import "ios/third_party/material_components_ios/src/components/AppBar/src/MaterialAppBar.h" |
@@ -73,6 +74,19 @@ |
// Add the app bar at the end. |
[_appBar addSubviewsToParent]; |
+ |
+ // Create a custom Back bar button item, as Material Navigation Bar deprecated |
+ // the back arrow with a shaft. |
+ self.navigationItem.leftBarButtonItem = |
+ [ChromeIcon templateBarButtonItemWithImage:[ChromeIcon backIcon] |
+ target:self |
+ action:@selector(back)]; |
+} |
+ |
+#pragma mark - Actions |
+ |
+- (void)back { |
+ [self.navigationController popViewControllerAnimated:YES]; |
} |
@end |