[MDC roll] Roll Material Components to 155f278b6
Adding pragma to ignore deprecated functions.
+[MDCAlertColorThemer applyColorScheme:] is now deprecated and used by
remoting_theme.mm:24
TBR: sergeyu
Bug: 930714
Change-Id: I85260127733a4564ffbe2a02814fc844c2af60cd
Reviewed-on: https://chromium-review.googlesource.com/c/1463444
Commit-Queue: Jérôme Lebel <jlebel@chromium.org>
Reviewed-by: Olivier Robin <olivierrobin@chromium.org>
Reviewed-by: Jérôme Lebel <jlebel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#631169}
diff --git a/DEPS b/DEPS
index 4b943ae..eac836da 100644
--- a/DEPS
+++ b/DEPS
@@ -402,7 +402,7 @@
},
'src/ios/third_party/material_components_ios/src': {
- 'url': Var('chromium_git') + '/external/github.com/material-components/material-components-ios.git' + '@' + 'fa005e3a713d0a24c40b88916c53d36498c9256e',
+ 'url': Var('chromium_git') + '/external/github.com/material-components/material-components-ios.git' + '@' + '155f278b6080ae550e8b36e9c55958f65cac33c2',
'condition': 'checkout_ios',
},
diff --git a/remoting/ios/app/remoting_theme.mm b/remoting/ios/app/remoting_theme.mm
index 0f8d6ba..9c315bf 100644
--- a/remoting/ios/app/remoting_theme.mm
+++ b/remoting/ios/app/remoting_theme.mm
@@ -19,7 +19,12 @@
+ (void)applyColorSchemes {
MDCBasicColorScheme* colorScheme = [[MDCBasicColorScheme alloc]
initWithPrimaryColor:RemotingTheme.flatButtonTextColor];
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+ // TODO(crbug.com/930714): +[MDCAlertColorThemer applyColorScheme:] is
+ // deprecated. Needs to be replaced.
[MDCAlertColorThemer applyColorScheme:colorScheme];
+#pragma GCC diagnostic pop
}
#pragma mark - Colors