summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_process_logging_linux.cc
blob: 59b16f6f70664532af4e17dd6705fd59e275c08c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2009 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/common/child_process_logging.h"

#include <string>

#include "base/logging.h"
#include "googleurl/src/gurl.h"

namespace child_process_logging {

// We use a static string to hold the most recent active url. If we crash, the
// crash handler code will send the contents of this string to the browser.
std::string active_url;

void SetActiveURL(const GURL& url) {
  active_url = url.possibly_invalid_spec();
}

}  // namespace child_process_logging