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

Side by Side Diff: chrome/browser/search_engines/search_provider_install_data.cc

Issue 316203003: Componentize GoogleURLTracker(InfoBarDelegate,MapEntry,NavHelper) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for iOS! Created 6 years, 6 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 | Annotate | Revision Log
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 "chrome/browser/search_engines/search_provider_install_data.h" 5 #include "chrome/browser/search_engines/search_provider_install_data.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/sequenced_task_runner_helpers.h" 16 #include "base/sequenced_task_runner_helpers.h"
17 #include "chrome/browser/chrome_notification_types.h" 17 #include "chrome/browser/chrome_notification_types.h"
18 #include "chrome/browser/google/google_url_tracker.h"
19 #include "chrome/browser/google/google_url_tracker_factory.h" 18 #include "chrome/browser/google/google_url_tracker_factory.h"
20 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/browser/search_engines/search_host_to_urls_map.h" 20 #include "chrome/browser/search_engines/search_host_to_urls_map.h"
22 #include "chrome/browser/search_engines/search_terms_data.h" 21 #include "chrome/browser/search_engines/search_terms_data.h"
23 #include "chrome/browser/search_engines/template_url.h" 22 #include "chrome/browser/search_engines/template_url.h"
24 #include "chrome/browser/search_engines/template_url_service.h" 23 #include "chrome/browser/search_engines/template_url_service.h"
25 #include "chrome/browser/search_engines/template_url_service_factory.h" 24 #include "chrome/browser/search_engines/template_url_service_factory.h"
26 #include "chrome/browser/search_engines/util.h" 25 #include "chrome/browser/search_engines/util.h"
27 #include "chrome/browser/webdata/web_data_service.h" 26 #include "chrome/browser/webdata/web_data_service.h"
27 #include "components/google/core/browser/google_url_tracker.h"
28 #include "content/public/browser/browser_thread.h" 28 #include "content/public/browser/browser_thread.h"
29 #include "content/public/browser/render_process_host.h" 29 #include "content/public/browser/render_process_host.h"
30 #include "content/public/browser/render_process_host_observer.h" 30 #include "content/public/browser/render_process_host_observer.h"
31 31
32 using content::BrowserThread; 32 using content::BrowserThread;
33 33
34 typedef SearchHostToURLsMap::TemplateURLSet TemplateURLSet; 34 typedef SearchHostToURLsMap::TemplateURLSet TemplateURLSet;
35 35
36 namespace { 36 namespace {
37 37
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 std::for_each(closure_queue.begin(), 315 std::for_each(closure_queue.begin(),
316 closure_queue.end(), 316 closure_queue.end(),
317 std::mem_fun_ref(&base::Closure::Run)); 317 std::mem_fun_ref(&base::Closure::Run));
318 318
319 // Since we expect this request to be rare, clear out the information. This 319 // Since we expect this request to be rare, clear out the information. This
320 // also keeps the responses current as the search providers change. 320 // also keeps the responses current as the search providers change.
321 provider_map_.reset(); 321 provider_map_.reset();
322 SetDefault(NULL); 322 SetDefault(NULL);
323 } 323 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698