summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 22:35:13 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 22:35:13 +0000
commit3fc364f9059372255062f7e5d009cce3b4d349f2 (patch)
tree3ab7e808ce97ce2fd901b1531a366bda8ca692d5 /chrome
parent892b70d03e3b6aa795b43a4bc70c77249e469958 (diff)
downloadchromium_src-3fc364f9059372255062f7e5d009cce3b4d349f2.zip
chromium_src-3fc364f9059372255062f7e5d009cce3b4d349f2.tar.gz
chromium_src-3fc364f9059372255062f7e5d009cce3b4d349f2.tar.bz2
Relanding Coverity fixes from http://codereview.chromium.org/159862 excluding the broken ones.
The change of GURL -> const GURL& caused some nasty crash and the change got reverted. TEST=none BUG=none Review URL: http://codereview.chromium.org/164095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/child_thread.cc2
-rw-r--r--chrome/common/child_thread.h2
-rw-r--r--chrome/test/automation/automation_proxy_uitest.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/child_thread.cc b/chrome/common/child_thread.cc
index 9168570..8e9e90c 100644
--- a/chrome/common/child_thread.cc
+++ b/chrome/common/child_thread.cc
@@ -22,7 +22,7 @@ ChildThread::ChildThread() {
Init();
}
-ChildThread::ChildThread(const std::string channel_name)
+ChildThread::ChildThread(const std::string& channel_name)
: channel_name_(channel_name) {
Init();
}
diff --git a/chrome/common/child_thread.h b/chrome/common/child_thread.h
index 91ea9b7..afcd803 100644
--- a/chrome/common/child_thread.h
+++ b/chrome/common/child_thread.h
@@ -20,7 +20,7 @@ class ChildThread : public IPC::Channel::Listener,
// Creates the thread.
ChildThread();
// Used for single-process mode.
- ChildThread(const std::string channel_name);
+ ChildThread(const std::string& channel_name);
virtual ~ChildThread();
// IPC::Message::Sender implementation:
diff --git a/chrome/test/automation/automation_proxy_uitest.cc b/chrome/test/automation/automation_proxy_uitest.cc
index 75395af..c67c1f7 100644
--- a/chrome/test/automation/automation_proxy_uitest.cc
+++ b/chrome/test/automation/automation_proxy_uitest.cc
@@ -829,7 +829,7 @@ TEST_F(ExternalTabTestType, IncognitoMode) {
tab = NULL;
CloseBrowserAndServer();
- value_result.empty();
+ value_result.clear();
clear_profile_ = false;
external_tab_container = NULL;
tab_wnd = NULL;