Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: ios/chrome/browser/find_in_page/js_findinpage_manager.mm

Issue 2685393004: [ios] Hoists the FindInPageModel up into the controller. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/find_in_page/js_findinpage_manager.mm
diff --git a/ios/chrome/browser/find_in_page/js_findinpage_manager.mm b/ios/chrome/browser/find_in_page/js_findinpage_manager.mm
index 96d4b6045168fecb997e3aa89f3f9fdfa063cb82..965073d597ac0c01ad5c416fbe2831ec2a827f7d 100644
--- a/ios/chrome/browser/find_in_page/js_findinpage_manager.mm
+++ b/ios/chrome/browser/find_in_page/js_findinpage_manager.mm
@@ -80,12 +80,6 @@ const FindInPageEntry kFindInPageEntryZero = {{0.0, 0.0}, 0};
@implementation JsFindinpageManager
@synthesize findInPageModel = _findInPageModel;
-- (FindInPageModel*)findInPageModel {
- if (!_findInPageModel)
- _findInPageModel = [[FindInPageModel alloc] init];
- return _findInPageModel;
-}
-
- (void)setWidth:(CGFloat)width height:(CGFloat)height {
NSString* javaScript =
[NSString stringWithFormat:kFindInPageInit, width, height];

Powered by Google App Engine
This is Rietveld 408576698