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

Unified Diff: chrome/browser/notifications/balloon_host.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/notifications/balloon_host.cc
===================================================================
--- chrome/browser/notifications/balloon_host.cc (revision 191609)
+++ chrome/browser/notifications/balloon_host.cc (working copy)
@@ -14,7 +14,6 @@
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/host_desktop.h"
#include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
-#include "chrome/browser/view_type_utils.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension_messages.h"
#include "chrome/common/render_messages.h"
@@ -28,6 +27,7 @@
#include "content/public/browser/web_contents.h"
#include "content/public/common/bindings_policy.h"
#include "content/public/common/renderer_preferences.h"
+#include "extensions/browser/view_type_utils.h"
#include "ipc/ipc_message.h"
using content::SiteInstance;
@@ -139,7 +139,8 @@
DCHECK(!web_contents_.get()) << "BalloonViewHost already initialized.";
web_contents_.reset(WebContents::Create(
WebContents::CreateParams(balloon_->profile(), site_instance_.get())));
- chrome::SetViewType(web_contents_.get(), chrome::VIEW_TYPE_NOTIFICATION);
+ extensions::SetViewType(
+ web_contents_.get(), extensions::VIEW_TYPE_NOTIFICATION);
web_contents_->SetDelegate(this);
Observe(web_contents_.get());
renderer_preferences_util::UpdateFromSystemSettings(

Powered by Google App Engine
This is Rietveld 408576698