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

Unified Diff: chrome/browser/extensions/lazy_background_task_queue.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/extensions/lazy_background_task_queue.cc
===================================================================
--- chrome/browser/extensions/lazy_background_task_queue.cc (revision 191609)
+++ chrome/browser/extensions/lazy_background_task_queue.cc (working copy)
@@ -15,12 +15,12 @@
#include "chrome/common/extensions/background_info.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_messages.h"
-#include "chrome/common/view_type.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
+#include "extensions/common/view_type.h"
namespace extensions {
@@ -41,7 +41,7 @@
Profile* profile, const Extension* extension) {
DCHECK(extension);
if (BackgroundInfo::HasBackgroundPage(extension)) {
- ExtensionProcessManager* pm = extensions::ExtensionSystem::Get(profile)->
+ ExtensionProcessManager* pm = ExtensionSystem::Get(profile)->
process_manager();
ExtensionHost* background_host =
pm->GetBackgroundHostForExtension(extension->id());
@@ -128,8 +128,7 @@
// events for it.
ExtensionHost* host =
content::Details<ExtensionHost>(details).ptr();
- if (host->extension_host_type() ==
- chrome::VIEW_TYPE_EXTENSION_BACKGROUND_PAGE) {
+ if (host->extension_host_type() == VIEW_TYPE_EXTENSION_BACKGROUND_PAGE) {
CHECK(host->did_stop_loading());
ProcessPendingTasks(host, host->profile(), host->extension());
}
@@ -143,8 +142,7 @@
Profile* profile = content::Source<Profile>(source).ptr();
ExtensionHost* host =
content::Details<ExtensionHost>(details).ptr();
- if (host->extension_host_type() ==
- chrome::VIEW_TYPE_EXTENSION_BACKGROUND_PAGE) {
+ if (host->extension_host_type() == VIEW_TYPE_EXTENSION_BACKGROUND_PAGE) {
ProcessPendingTasks(NULL, profile, host->extension());
}
break;

Powered by Google App Engine
This is Rietveld 408576698