commit | 96f960d08a15c3d125bd10b9ed60b69ea8ab0107 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Mon Sep 14 18:45:30 2009 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Mon Sep 14 18:45:30 2009 |
tree | 39796dda63f3df4ecff5a6e3a8f9634c185adadf | |
parent | 5447d10e77193477da4384cb8ff394a2235c4efa [diff] [blame] |
Lands http://codereview.chromium.org/201102 for Oshima: Don't allow updating group id once it's set. BUG=none TEST=none Review URL: http://codereview.chromium.org/205001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26132 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/views/view.cc b/views/view.cc index 8664ad9..c5db5db 100644 --- a/views/view.cc +++ b/views/view.cc
@@ -791,6 +791,8 @@ } void View::SetGroup(int gid) { + // Don't change the group id once it's set. + DCHECK(group_ == -1 || group_ == gid); group_ = gid; }