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

Unified Diff: chrome/browser/profile.cc

Issue 328031: Refactor paste and go out of AutocompleteEdit. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: style fixes Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profile.h ('k') | chrome/browser/search_versus_navigate_classifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile.cc
===================================================================
--- chrome/browser/profile.cc (revision 30347)
+++ chrome/browser/profile.cc (working copy)
@@ -32,6 +32,7 @@
#include "chrome/browser/privacy_blacklist/blacklist.h"
#include "chrome/browser/profile_manager.h"
#include "chrome/browser/renderer_host/render_process_host.h"
+#include "chrome/browser/search_versus_navigate_classifier.h"
#include "chrome/browser/search_engines/template_url_fetcher.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/browser/sessions/session_service.h"
@@ -301,6 +302,10 @@
}
}
+ virtual SearchVersusNavigateClassifier* GetSearchVersusNavigateClassifier() {
+ return profile_->GetSearchVersusNavigateClassifier();
+ }
+
virtual WebDataService* GetWebDataService(ServiceAccessType sat) {
if (sat == EXPLICIT_ACCESS) {
return profile_->GetWebDataService(sat);
@@ -546,7 +551,7 @@
// Time we were started.
Time start_time_;
- DISALLOW_EVIL_CONSTRUCTORS(OffTheRecordProfileImpl);
+ DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
};
ProfileImpl::ProfileImpl(const FilePath& path)
@@ -1005,6 +1010,15 @@
return template_url_fetcher_.get();
}
+SearchVersusNavigateClassifier* ProfileImpl::GetSearchVersusNavigateClassifier()
+{
+ if (!search_versus_navigate_classifier_.get()) {
+ search_versus_navigate_classifier_.reset(
+ new SearchVersusNavigateClassifier(this));
+ }
+ return search_versus_navigate_classifier_.get();
+}
+
WebDataService* ProfileImpl::GetWebDataService(ServiceAccessType sat) {
if (!created_web_data_service_)
CreateWebDataService();
« no previous file with comments | « chrome/browser/profile.h ('k') | chrome/browser/search_versus_navigate_classifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698