-
Notifications
You must be signed in to change notification settings - Fork 920
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wallet data files installer delegate impl for iOS
- Loading branch information
1 parent
fdf1bf2
commit e3449f4
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
ios/browser/brave_wallet/wallet_data_files_installer_delegate_impl.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* Copyright (c) 2023 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at https://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVE_IOS_BROWSER_BRAVE_WALLET_WALLET_DATA_FILES_INSTALLER_DELEGATE_IMPL_H_ | ||
#define BRAVE_IOS_BROWSER_BRAVE_WALLET_WALLET_DATA_FILES_INSTALLER_DELEGATE_IMPL_H_ | ||
|
||
#include "brave/components/brave_wallet/browser/wallet_data_files_installer_delegate.h" | ||
|
||
namespace brave_wallet { | ||
|
||
class WalletDataFilesInstallerDelegateImpl | ||
: public WalletDataFilesInstallerDelegate { | ||
public: | ||
WalletDataFilesInstallerDelegateImpl() = default; | ||
~WalletDataFilesInstallerDelegateImpl() override = default; | ||
component_updater::ComponentUpdateService* GetComponentUpdater() override; | ||
}; | ||
|
||
} // namespace brave_wallet | ||
|
||
#endif // BRAVE_IOS_BROWSER_BRAVE_WALLET_WALLET_DATA_FILES_INSTALLER_DELEGATE_IMPL_H_ |
16 changes: 16 additions & 0 deletions
16
ios/browser/brave_wallet/wallet_data_files_installer_delegate_impl.mm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* Copyright (c) 2023 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at https://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "brave/ios/browser/brave_wallet/wallet_data_files_installer_delegate_impl.h" | ||
#include "ios/chrome/browser/shared/model/application_context/application_context.h" | ||
|
||
namespace brave_wallet { | ||
|
||
component_updater::ComponentUpdateService* | ||
WalletDataFilesInstallerDelegateImpl::GetComponentUpdater() { | ||
return GetApplicationContext()->GetComponentUpdateService(); | ||
} | ||
|
||
} // namespace brave_wallet |