| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "ios/chrome/browser/store_kit/store_kit_tab_helper.h" |
| 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
| 11 DEFINE_WEB_STATE_USER_DATA_KEY(StoreKitTabHelper); |
| 12 |
| 13 StoreKitTabHelper::StoreKitTabHelper(web::WebState* web_state) {} |
| 14 |
| 15 StoreKitTabHelper::~StoreKitTabHelper() {} |
| 16 |
| 17 void StoreKitTabHelper::SetLauncher(id<StoreKitLauncher> launcher) { |
| 18 store_kit_launcher_.reset(launcher); |
| 19 } |
| 20 |
| 21 id<StoreKitLauncher> StoreKitTabHelper::GetLauncher() { |
| 22 return store_kit_launcher_; |
| 23 } |
| 24 |
| 25 void StoreKitTabHelper::OpenAppStore(NSString* app_id) { |
| 26 [store_kit_launcher_ openAppStore:app_id]; |
| 27 } |
| OLD | NEW |