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

Side by Side Diff: components/history/core/browser/web_history_service.cc

Issue 2231753002: components: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more call site Created 4 years, 4 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/history/core/browser/web_history_service.h" 5 #include "components/history/core/browser/web_history_service.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 OAuth2TokenService* token_service, 327 OAuth2TokenService* token_service,
328 SigninManagerBase* signin_manager, 328 SigninManagerBase* signin_manager,
329 const scoped_refptr<net::URLRequestContextGetter>& request_context) 329 const scoped_refptr<net::URLRequestContextGetter>& request_context)
330 : token_service_(token_service), 330 : token_service_(token_service),
331 signin_manager_(signin_manager), 331 signin_manager_(signin_manager),
332 request_context_(request_context), 332 request_context_(request_context),
333 weak_ptr_factory_(this) { 333 weak_ptr_factory_(this) {
334 } 334 }
335 335
336 WebHistoryService::~WebHistoryService() { 336 WebHistoryService::~WebHistoryService() {
337 STLDeleteElements(&pending_expire_requests_); 337 base::STLDeleteElements(&pending_expire_requests_);
338 STLDeleteElements(&pending_audio_history_requests_); 338 base::STLDeleteElements(&pending_audio_history_requests_);
339 STLDeleteElements(&pending_web_and_app_activity_requests_); 339 base::STLDeleteElements(&pending_web_and_app_activity_requests_);
340 STLDeleteElements(&pending_other_forms_of_browsing_history_requests_); 340 base::STLDeleteElements(&pending_other_forms_of_browsing_history_requests_);
341 } 341 }
342 342
343 WebHistoryService::Request* WebHistoryService::CreateRequest( 343 WebHistoryService::Request* WebHistoryService::CreateRequest(
344 const GURL& url, 344 const GURL& url,
345 const CompletionCallback& callback) { 345 const CompletionCallback& callback) {
346 return new RequestImpl(token_service_, signin_manager_, request_context_, url, 346 return new RequestImpl(token_service_, signin_manager_, request_context_, url,
347 callback); 347 callback);
348 } 348 }
349 349
350 // static 350 // static
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 if (success && request->GetResponseCode() == net::HTTP_OK) { 608 if (success && request->GetResponseCode() == net::HTTP_OK) {
609 sync_pb::HistoryStatusResponse history_status; 609 sync_pb::HistoryStatusResponse history_status;
610 if (history_status.ParseFromString(request->GetResponseBody())) 610 if (history_status.ParseFromString(request->GetResponseBody()))
611 has_other_forms_of_browsing_history = history_status.has_derived_data(); 611 has_other_forms_of_browsing_history = history_status.has_derived_data();
612 } 612 }
613 613
614 callback.Run(has_other_forms_of_browsing_history); 614 callback.Run(has_other_forms_of_browsing_history);
615 } 615 }
616 616
617 } // namespace history 617 } // namespace history
OLDNEW
« no previous file with comments | « components/history/core/browser/visit_tracker.cc ('k') | components/invalidation/impl/registration_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698