Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / tab_contents / background_contents.cc
index 9a3e384..20902f3 100644 (file)
@@ -10,7 +10,6 @@
 #include "chrome/browser/profiles/profile.h"
 #include "chrome/browser/renderer_preferences_util.h"
 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
-#include "chrome/common/extensions/extension_constants.h"
 #include "chrome/common/url_constants.h"
 #include "content/public/browser/notification_service.h"
 #include "content/public/browser/render_view_host.h"
@@ -124,6 +123,12 @@ void BackgroundContents::AddNewContents(WebContents* source,
       new_contents, disposition, initial_pos, user_gesture, was_blocked);
 }
 
+bool BackgroundContents::IsNeverVisible(content::WebContents* web_contents) {
+  DCHECK_EQ(extensions::VIEW_TYPE_BACKGROUND_CONTENTS,
+            extensions::GetViewType(web_contents));
+  return true;
+}
+
 void BackgroundContents::RenderProcessGone(base::TerminationStatus status) {
   content::NotificationService::current()->Notify(
       chrome::NOTIFICATION_BACKGROUND_CONTENTS_TERMINATED,