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

Unified Diff: chrome/browser/browser_process_sub_thread.cc

Issue 7906008: Create a very simple TabContentsView (and not fully implemented yet) and add more supporting code... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 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/browser_process_sub_thread.cc
===================================================================
--- chrome/browser/browser_process_sub_thread.cc (revision 100929)
+++ chrome/browser/browser_process_sub_thread.cc (working copy)
@@ -1,40 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "build/build_config.h"
-#include "chrome/browser/browser_process_sub_thread.h"
-#include "content/common/notification_service.h"
-
-#if defined(OS_WIN)
-#include <Objbase.h>
-#endif
-
-BrowserProcessSubThread::BrowserProcessSubThread(BrowserThread::ID identifier)
- : BrowserThread(identifier) {}
-
-BrowserProcessSubThread::~BrowserProcessSubThread() {
- // We cannot rely on our base class to stop the thread since we want our
- // CleanUp function to run.
- Stop();
-}
-
-void BrowserProcessSubThread::Init() {
-#if defined(OS_WIN)
- // Initializes the COM library on the current thread.
- CoInitialize(NULL);
-#endif
-
- notification_service_ = new NotificationService;
-}
-
-void BrowserProcessSubThread::CleanUp() {
- delete notification_service_;
- notification_service_ = NULL;
-
-#if defined(OS_WIN)
- // Closes the COM library on the current thread. CoInitialize must
- // be balanced by a corresponding call to CoUninitialize.
- CoUninitialize();
-#endif
-}

Powered by Google App Engine
This is Rietveld 408576698