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

Unified Diff: chrome/browser/chrome_browser_main_extra_parts_views.cc

Issue 8539038: Add ChromeBrowserMainExtraParts for non main parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again + explicit reset of parts_ Created 9 years, 1 month 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/chrome_browser_main_extra_parts_views.h ('k') | chrome/browser/chrome_browser_main_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_extra_parts_views.cc
diff --git a/chrome/browser/chrome_browser_parts_views.cc b/chrome/browser/chrome_browser_main_extra_parts_views.cc
similarity index 85%
rename from chrome/browser/chrome_browser_parts_views.cc
rename to chrome/browser/chrome_browser_main_extra_parts_views.cc
index 31911082602f37635f19b1814e7cbd79885d8e8b..78087d1cc13cc9e21fef5e16349526d199cd40c6 100644
--- a/chrome/browser/chrome_browser_parts_views.cc
+++ b/chrome/browser/chrome_browser_main_extra_parts_views.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/chrome_browser_parts_views.h"
+#include "chrome/browser/chrome_browser_main_extra_parts_views.h"
#include <string>
@@ -12,11 +12,11 @@
#include "ui/views/desktop/desktop_window_view.h"
#include "views/widget/widget.h"
-ChromeBrowserPartsViews::ChromeBrowserPartsViews()
- : content::BrowserMainParts() {
+ChromeBrowserMainExtraPartsViews::ChromeBrowserMainExtraPartsViews()
+ : ChromeBrowserMainExtraParts() {
}
-void ChromeBrowserPartsViews::ToolkitInitialized() {
+void ChromeBrowserMainExtraPartsViews::ToolkitInitialized() {
// The delegate needs to be set before any UI is created so that windows
// display the correct icon.
if (!views::ViewsDelegate::views_delegate)
@@ -27,7 +27,7 @@ void ChromeBrowserPartsViews::ToolkitInitialized() {
views::Widget::SetDebugPaintEnabled(true);
}
-void ChromeBrowserPartsViews::PreMainMessageLoopRun() {
+void ChromeBrowserMainExtraPartsViews::PostBrowserProcessInit() {
#if !defined(USE_AURA)
views::Widget::SetPureViews(
CommandLine::ForCurrentProcess()->HasSwitch(switches::kUsePureViews));
@@ -54,7 +54,3 @@ void ChromeBrowserPartsViews::PreMainMessageLoopRun() {
}
#endif
}
-
-bool ChromeBrowserPartsViews::MainMessageLoopRun(int* result_code) {
- return false;
-}
« no previous file with comments | « chrome/browser/chrome_browser_main_extra_parts_views.h ('k') | chrome/browser/chrome_browser_main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698