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

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

Issue 396313002: Fix header inclusion of chrome_template_url_service_client.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chrome_template_url_service_client.h" 5 #include "chrome/browser/search_engines/chrome_template_url_service_client.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/history/history_notifications.h"
8 #include "chrome/browser/history/history_service.h" 9 #include "chrome/browser/history/history_service.h"
9 #include "chrome/browser/history/history_service_factory.h" 10 #include "chrome/browser/history/history_service_factory.h"
10 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
11 #include "components/search_engines/template_url_service.h" 12 #include "components/search_engines/template_url_service.h"
12 #include "content/public/browser/notification_details.h" 13 #include "content/public/browser/notification_details.h"
13 #include "content/public/browser/notification_source.h" 14 #include "content/public/browser/notification_source.h"
14 15
15 ChromeTemplateURLServiceClient::ChromeTemplateURLServiceClient(Profile* profile) 16 ChromeTemplateURLServiceClient::ChromeTemplateURLServiceClient(Profile* profile)
16 : profile_(profile), 17 : profile_(profile),
17 owner_(NULL) { 18 owner_(NULL) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 return; 74 return;
74 75
75 content::Details<history::URLVisitedDetails> history_details(details); 76 content::Details<history::URLVisitedDetails> history_details(details);
76 TemplateURLService::URLVisitedDetails visited_details; 77 TemplateURLService::URLVisitedDetails visited_details;
77 visited_details.url = history_details->row.url(); 78 visited_details.url = history_details->row.url();
78 visited_details.is_keyword_transition = 79 visited_details.is_keyword_transition =
79 content::PageTransitionStripQualifier(history_details->transition) == 80 content::PageTransitionStripQualifier(history_details->transition) ==
80 content::PAGE_TRANSITION_KEYWORD; 81 content::PAGE_TRANSITION_KEYWORD;
81 owner_->OnHistoryURLVisited(visited_details); 82 owner_->OnHistoryURLVisited(visited_details);
82 } 83 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698