Chromium Code Reviews| Index: chrome/browser/ui/android/tab_model/tab_model.cc |
| diff --git a/chrome/browser/ui/android/tab_model/tab_model.cc b/chrome/browser/ui/android/tab_model/tab_model.cc |
| index 7bd5d7305061ebd98c912aad0ca1c378011b3cee..e6d01bc42138c6d10453fc73c42484dcd3c55173 100644 |
| --- a/chrome/browser/ui/android/tab_model/tab_model.cc |
| +++ b/chrome/browser/ui/android/tab_model/tab_model.cc |
| @@ -7,6 +7,7 @@ |
| #include "base/logging.h" |
| #include "chrome/browser/browser_process.h" |
| #include "chrome/browser/profiles/profile.h" |
| +#include "chrome/browser/search_engines/search_terms_data.h" |
| #include "chrome/browser/sync/glue/synced_window_delegate_android.h" |
| #include "chrome/browser/ui/toolbar/toolbar_model_impl.h" |
| #include "chrome/common/chrome_notification_types.h" |
| @@ -92,6 +93,17 @@ ToolbarModel::SecurityLevel TabModel::GetSecurityLevelForCurrentTab() { |
| return toolbar_model_->GetSecurityLevel(); |
| } |
| +string16 TabModel::GetSearchTermsForCurrentUrl() { |
| + return toolbar_model_->GetText(true); |
| +} |
| + |
| +std::string TabModel::GetQueryExtractionParam() { |
| + if (!profile_) |
| + return std::string(); |
| + UIThreadSearchTermsData search_terms_data(profile_); |
| + return search_terms_data.InstantExtendedEnabledParam(); |
|
sreeram
2013/03/01 16:48:16
SearchTermsData::InstantExtendedEnabledParam() che
rohitrao (ping after 24h)
2013/03/01 16:57:13
https://codereview.chromium.org/12319124/ is in-fl
sreeram
2013/03/01 17:00:41
Oh, right. Sorry I forgot about that CL.
|
| +} |
| + |
| void TabModel::Observe( |
| int type, |
| const content::NotificationSource& source, |