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

Unified Diff: chrome/browser/ui/web_applications/web_app_ui.cc

Issue 10546102: TabContentsWrapper -> TabContents, part 49. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « chrome/browser/ui/web_applications/web_app_ui.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/web_applications/web_app_ui.cc
diff --git a/chrome/browser/ui/web_applications/web_app_ui.cc b/chrome/browser/ui/web_applications/web_app_ui.cc
index 1696502236e98bbd2e1b4d1ed98c16345eb1537f..6e36ba8e0f7f55423faef3a2f906aac65c84750d 100644
--- a/chrome/browser/ui/web_applications/web_app_ui.cc
+++ b/chrome/browser/ui/web_applications/web_app_ui.cc
@@ -13,7 +13,7 @@
#include "chrome/browser/extensions/extension_tab_helper.h"
#include "chrome/browser/favicon/favicon_tab_helper.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths.h"
@@ -41,7 +41,7 @@ namespace {
// and cancels all the work when the underlying tab is closing.
class UpdateShortcutWorker : public content::NotificationObserver {
public:
- explicit UpdateShortcutWorker(TabContentsWrapper* tab_contents);
+ explicit UpdateShortcutWorker(TabContents* tab_contents);
void Run();
@@ -51,7 +51,7 @@ class UpdateShortcutWorker : public content::NotificationObserver {
const content::NotificationSource& source,
const content::NotificationDetails& details);
- // Downloads icon via TabContentsWrapper.
+ // Downloads icon via TabContents.
void DownloadIcon();
// Callback when icon downloaded.
@@ -73,8 +73,8 @@ class UpdateShortcutWorker : public content::NotificationObserver {
content::NotificationRegistrar registrar_;
- // Underlying TabContentsWrapper whose shortcuts will be updated.
- TabContentsWrapper* tab_contents_;
+ // Underlying TabContents whose shortcuts will be updated.
+ TabContents* tab_contents_;
// Icons info from tab_contents_'s web app data.
web_app::IconInfoList unprocessed_icons_;
@@ -94,7 +94,7 @@ class UpdateShortcutWorker : public content::NotificationObserver {
DISALLOW_COPY_AND_ASSIGN(UpdateShortcutWorker);
};
-UpdateShortcutWorker::UpdateShortcutWorker(TabContentsWrapper* tab_contents)
+UpdateShortcutWorker::UpdateShortcutWorker(TabContents* tab_contents)
: tab_contents_(tab_contents),
profile_path_(tab_contents->profile()->GetPath()) {
web_app::GetShortcutInfoForTab(tab_contents_, &shortcut_info_);
@@ -297,13 +297,13 @@ void UpdateShortcutWorker::DeleteMeOnUIThread() {
namespace web_app {
-void GetShortcutInfoForTab(TabContentsWrapper* tab_contents_wrapper,
+void GetShortcutInfoForTab(TabContents* tab_contents,
ShellIntegration::ShortcutInfo* info) {
DCHECK(info); // Must provide a valid info.
- const WebContents* web_contents = tab_contents_wrapper->web_contents();
+ const WebContents* web_contents = tab_contents->web_contents();
const WebApplicationInfo& app_info =
- tab_contents_wrapper->extension_tab_helper()->web_app_info();
+ tab_contents->extension_tab_helper()->web_app_info();
info->url = app_info.app_url.is_empty() ? web_contents->GetURL() :
app_info.app_url;
@@ -313,10 +313,10 @@ void GetShortcutInfoForTab(TabContentsWrapper* tab_contents_wrapper,
app_info.title;
info->description = app_info.description;
info->favicon =
- gfx::Image(tab_contents_wrapper->favicon_tab_helper()->GetFavicon());
+ gfx::Image(tab_contents->favicon_tab_helper()->GetFavicon());
}
-void UpdateShortcutForTabContents(TabContentsWrapper* tab_contents) {
+void UpdateShortcutForTabContents(TabContents* tab_contents) {
#if defined(OS_WIN)
// UpdateShortcutWorker will delete itself when it's done.
UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents);
« no previous file with comments | « chrome/browser/ui/web_applications/web_app_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698