Chromium Code Reviews| Index: ios/web_view/internal/cwv.mm |
| diff --git a/ios/web_view/internal/cwv.mm b/ios/web_view/internal/cwv.mm |
| index e24120c1a1985f14fbb336f437ad0236e121a6bb..697bdc709662d8cd5720c460d518518a1a98643d 100644 |
| --- a/ios/web_view/internal/cwv.mm |
| +++ b/ios/web_view/internal/cwv.mm |
| @@ -8,6 +8,7 @@ |
| #include "base/location.h" |
| #import "base/mac/bind_objc_block.h" |
| +#import "base/mac/bundle_locations.h" |
| #include "base/memory/ptr_util.h" |
| #include "base/single_thread_task_runner.h" |
| #include "ios/web/public/app/web_main.h" |
| @@ -41,6 +42,7 @@ CWV* g_criwv = nil; |
| @synthesize delegate = _delegate; |
| + (void)configureWithDelegate:(id<CWVDelegate>)delegate { |
| + base::mac::SetOverrideFrameworkBundle([NSBundle bundleForClass:[self class]]); |
|
sdefresne
2017/03/14 09:16:34
Why not putting this in WebViewWebMainParts::PreMa
michaeldo
2017/03/14 15:34:23
Excellent idea, I didn't know where the best place
|
| g_criwv = [[CWV alloc] initWithDelegate:delegate]; |
| } |