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

Side by Side Diff: components/visitedlink/browser/visitedlink_master.cc

Issue 1610103002: Fix build error with gcc 4.8.2 about WARN_UNUSED_RESULT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/visitedlink/browser/visitedlink_master.h" 5 #include "components/visitedlink/browser/visitedlink_master.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 #include <algorithm> 9 #include <algorithm>
10 #include <utility> 10 #include <utility>
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 275 }
276 } 276 }
277 277
278 void VisitedLinkMaster::InitMembers() { 278 void VisitedLinkMaster::InitMembers() {
279 file_ = NULL; 279 file_ = NULL;
280 shared_memory_ = NULL; 280 shared_memory_ = NULL;
281 shared_memory_serial_ = 0; 281 shared_memory_serial_ = 0;
282 used_items_ = 0; 282 used_items_ = 0;
283 table_size_override_ = 0; 283 table_size_override_ = 0;
284 suppress_rebuild_ = false; 284 suppress_rebuild_ = false;
285 sequence_token_ = BrowserThread::GetBlockingPool()->GetSequenceToken(); 285 sequence_token_ = base::SequencedWorkerPool::GetSequenceToken();
286 } 286 }
287 287
288 bool VisitedLinkMaster::Init() { 288 bool VisitedLinkMaster::Init() {
289 // Create the temporary table. If the table is rebuilt that temporary table 289 // Create the temporary table. If the table is rebuilt that temporary table
290 // will be became the main table. 290 // will be became the main table.
291 // The salt must be generated before the table so that it can be copied to 291 // The salt must be generated before the table so that it can be copied to
292 // the shared memory. 292 // the shared memory.
293 GenerateSalt(salt_); 293 GenerateSalt(salt_);
294 if (!CreateURLTable(DefaultTableSize())) 294 if (!CreateURLTable(DefaultTableSize()))
295 return false; 295 return false;
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 BrowserThread::UI, FROM_HERE, 1195 BrowserThread::UI, FROM_HERE,
1196 base::Bind(&TableBuilder::OnCompleteMainThread, this)); 1196 base::Bind(&TableBuilder::OnCompleteMainThread, this));
1197 } 1197 }
1198 1198
1199 void VisitedLinkMaster::TableBuilder::OnCompleteMainThread() { 1199 void VisitedLinkMaster::TableBuilder::OnCompleteMainThread() {
1200 if (master_) 1200 if (master_)
1201 master_->OnTableRebuildComplete(success_, fingerprints_); 1201 master_->OnTableRebuildComplete(success_, fingerprints_);
1202 } 1202 }
1203 1203
1204 } // namespace visitedlink 1204 } // namespace visitedlink
OLDNEW
« no previous file with comments | « chrome/browser/search/suggestions/suggestions_service_factory.cc ('k') | extensions/browser/updater/update_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698