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

Unified Diff: chrome/browser/task_manager/task_manager_resource_providers.cc

Issue 13375017: Move the ViewType enum to extensions\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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
Index: chrome/browser/task_manager/task_manager_resource_providers.cc
===================================================================
--- chrome/browser/task_manager/task_manager_resource_providers.cc (revision 191609)
+++ chrome/browser/task_manager/task_manager_resource_providers.cc (working copy)
@@ -749,7 +749,7 @@
const content::NotificationSource& source,
const content::NotificationDetails& details) {
WebContents* web_contents = content::Source<WebContents>(source).ptr();
- if (chrome::GetViewType(web_contents) != chrome::VIEW_TYPE_PANEL)
+ if (chrome::GetViewType(web_contents) != extensions::VIEW_TYPE_PANEL)
return;
switch (type) {
@@ -1409,8 +1409,8 @@
bool TaskManagerExtensionProcessResource::IsBackground() const {
WebContents* web_contents =
WebContents::FromRenderViewHost(render_view_host_);
- chrome::ViewType view_type = chrome::GetViewType(web_contents);
- return view_type == chrome::VIEW_TYPE_EXTENSION_BACKGROUND_PAGE;
+ extensions::ViewType view_type = chrome::GetViewType(web_contents);
+ return view_type == extensions::VIEW_TYPE_EXTENSION_BACKGROUND_PAGE;
}
////////////////////////////////////////////////////////////////////////////////
@@ -1545,17 +1545,17 @@
// TaskManagerExtensionProcessResource constructor).
if (web_contents->GetRenderProcessHost()->IsGuest())
return false;
- chrome::ViewType view_type = chrome::GetViewType(web_contents);
+ extensions::ViewType view_type = chrome::GetViewType(web_contents);
// Don't add WebContents (those are handled by
// TaskManagerTabContentsResourceProvider) or background contents (handled
// by TaskManagerBackgroundResourceProvider).
#if defined(USE_ASH)
- return (view_type != chrome::VIEW_TYPE_TAB_CONTENTS &&
- view_type != chrome::VIEW_TYPE_BACKGROUND_CONTENTS);
+ return (view_type != extensions::VIEW_TYPE_TAB_CONTENTS &&
+ view_type != extensions::VIEW_TYPE_BACKGROUND_CONTENTS);
#else
- return (view_type != chrome::VIEW_TYPE_TAB_CONTENTS &&
- view_type != chrome::VIEW_TYPE_BACKGROUND_CONTENTS &&
- view_type != chrome::VIEW_TYPE_PANEL);
+ return (view_type != extensions::VIEW_TYPE_TAB_CONTENTS &&
+ view_type != extensions::VIEW_TYPE_BACKGROUND_CONTENTS &&
+ view_type != extensions::VIEW_TYPE_PANEL);
#endif // USE_ASH
}

Powered by Google App Engine
This is Rietveld 408576698