Commit b49442a0 authored by Yi Gu's avatar Yi Gu Committed by Chromium LUCI CQ

[CodeHealth] Remove unused helper function ShowAppInfo

Bug: None
Change-Id: I418130add9341582be7a85e30f77c83818830e52
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2591108
Commit-Queue: Yi Gu <yigu@chromium.org>
Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#837072}
parent 4f2ce2d9
...@@ -53,12 +53,6 @@ void ShowAppInfoInAppList(gfx::NativeWindow parent, ...@@ -53,12 +53,6 @@ void ShowAppInfoInAppList(gfx::NativeWindow parent,
const extensions::Extension* app); const extensions::Extension* app);
#endif #endif
// Shows the chrome app information in an independent dialog box and runs
// close_callback when the app info window is closed.
void ShowAppInfo(Profile* profile,
const extensions::Extension* app,
const base::Closure& close_callback);
// Shows the chrome app information in a native dialog box. // Shows the chrome app information in a native dialog box.
void ShowAppInfoInNativeDialog(content::WebContents* web_contents, void ShowAppInfoInNativeDialog(content::WebContents* web_contents,
Profile* profile, Profile* profile,
......
...@@ -109,17 +109,6 @@ void ShowAppInfoInAppList(gfx::NativeWindow parent, ...@@ -109,17 +109,6 @@ void ShowAppInfoInAppList(gfx::NativeWindow parent,
} }
#endif #endif
void ShowAppInfo(Profile* profile,
const extensions::Extension* app,
const base::Closure& close_callback) {
views::DialogDelegate* dialog = CreateDialogContainerForView(
std::make_unique<AppInfoDialog>(profile, app), kDialogSize,
close_callback);
views::Widget* dialog_widget =
views::DialogDelegate::CreateDialogWidget(dialog, nullptr, nullptr);
dialog_widget->Show();
}
void ShowAppInfoInNativeDialog(content::WebContents* web_contents, void ShowAppInfoInNativeDialog(content::WebContents* web_contents,
Profile* profile, Profile* profile,
const extensions::Extension* app, const extensions::Extension* app,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment