| Index: chrome/browser/history/history_backend.cc
|
| diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
|
| index c7fc71a026ddcf254be531525021783e990e190b..3081b0578ed275e28cf9b745ed02a0a02557164d 100644
|
| --- a/chrome/browser/history/history_backend.cc
|
| +++ b/chrome/browser/history/history_backend.cc
|
| @@ -308,8 +308,10 @@ SegmentID HistoryBackend::UpdateSegments(
|
| if (!url_id)
|
| return 0;
|
|
|
| - if (!(segment_id = db_->GetSegmentNamed(segment_name))) {
|
| - if (!(segment_id = db_->CreateSegment(url_id, segment_name))) {
|
| + segment_id = db_->GetSegmentNamed(segment_name);
|
| + if (!segment_id) {
|
| + segment_id = db_->CreateSegment(url_id, segment_name);
|
| + if (!segment_id) {
|
| NOTREACHED();
|
| return 0;
|
| }
|
| @@ -324,7 +326,8 @@ SegmentID HistoryBackend::UpdateSegments(
|
| // This can happen if the initial navigation wasn't AUTO_BOOKMARK or
|
| // TYPED. (For example GENERATED). In this case this visit doesn't count
|
| // toward any segment.
|
| - if (!(segment_id = GetLastSegmentID(from_visit)))
|
| + segment_id = GetLastSegmentID(from_visit);
|
| + if (!segment_id)
|
| return 0;
|
| }
|
|
|
|
|