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

Unified Diff: chrome/browser/process_singleton.cc

Issue 12096114: Extract locking behaviour from ProcessSingleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restrict chrome_process_singleton_unittest to WIN for now. Created 7 years, 8 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/process_singleton.cc
diff --git a/chrome/browser/process_singleton.cc b/chrome/browser/process_singleton.cc
deleted file mode 100644
index 21c465490210bd22176c108fd80687e52a2baa00..0000000000000000000000000000000000000000
--- a/chrome/browser/process_singleton.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) 2012 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 "chrome/browser/process_singleton.h"
-
-void ProcessSingleton::Unlock() {
- DCHECK(CalledOnValidThread());
- locked_ = false;
- foreground_window_ = NULL;
- // Replay the command lines of the messages which were received while the
- // ProcessSingleton was locked. Only replay each message once.
- std::set<DelayedStartupMessage> replayed_messages;
- for (std::vector<DelayedStartupMessage>::const_iterator it =
- saved_startup_messages_.begin();
- it != saved_startup_messages_.end(); ++it) {
- if (replayed_messages.find(*it) !=
- replayed_messages.end())
- continue;
- notification_callback_.Run(CommandLine(it->first), it->second);
- replayed_messages.insert(*it);
- }
- saved_startup_messages_.clear();
-}

Powered by Google App Engine
This is Rietveld 408576698