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

Unified Diff: chrome/browser/android/banners/app_banner_manager_android.h

Issue 1092193004: Use related_applications manifest fields when showing native app banners (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/android/banners/app_banner_manager_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/banners/app_banner_manager_android.h
diff --git a/chrome/browser/android/banners/app_banner_manager_android.h b/chrome/browser/android/banners/app_banner_manager_android.h
index f63b5566f7a192f5ac675cd407728505c07e04c3..f93a1b782dd30103f7bcf06a3323a37b0dfcd1b3 100644
--- a/chrome/browser/android/banners/app_banner_manager_android.h
+++ b/chrome/browser/android/banners/app_banner_manager_android.h
@@ -47,26 +47,16 @@ class AppBannerManagerAndroid : public AppBannerManager {
jstring japp_package,
jstring jicon_url);
- // WebContentsObserver overrides.
- bool OnMessageReceived(const IPC::Message& message) override;
-
- // AppBannerDataFetcher::Delegate overrides.
- bool OnInvalidManifest(AppBannerDataFetcher* fetcher) override;
-
protected:
AppBannerDataFetcher* CreateAppBannerDataFetcher(
base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate,
const int ideal_icon_size) override;
private:
- // Called when the renderer has returned information about the meta tag.
- // If there is some metadata for the play store tag, this kicks off the
- // process of showing a banner for the package designated by |tag_content| on
- // the page at the |expected_url|.
- void OnDidRetrieveMetaTagContent(bool success,
- const std::string& tag_name,
- const std::string& tag_content,
- const GURL& expected_url);
+ // AppBannerDataFetcher::Delegate overrides.
+ bool HandleNonWebApp(const std::string& platform,
+ const GURL& url,
+ const std::string& id) override;
// AppBannerManager on the Java side.
JavaObjectWeakGlobalRef weak_java_banner_view_manager_;
« no previous file with comments | « no previous file | chrome/browser/android/banners/app_banner_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698