| Index: chrome/browser/resources/options/search_page.js
|
| diff --git a/chrome/browser/resources/options/search_page.js b/chrome/browser/resources/options/search_page.js
|
| index 0152017b9fae2c119308020c7dd6905107ba86ef..d5b982671c212a580244a490bcc13992470809a6 100644
|
| --- a/chrome/browser/resources/options/search_page.js
|
| +++ b/chrome/browser/resources/options/search_page.js
|
| @@ -187,6 +187,10 @@ cr.define('options', function() {
|
| if (!this.searchActive_ && !active)
|
| return;
|
|
|
| + // Guest users should never have active search.
|
| + if (loadTimeData.getBoolean('profileIsGuest'))
|
| + return;
|
| +
|
| this.searchActive_ = active;
|
|
|
| if (active) {
|
| @@ -260,6 +264,10 @@ cr.define('options', function() {
|
| * @private
|
| */
|
| setSearchText_: function(text) {
|
| + // Guest users should never have search text.
|
| + if (loadTimeData.getBoolean('profileIsGuest'))
|
| + return;
|
| +
|
| // Prevent recursive execution of this method.
|
| if (this.insideSetSearchText_) return;
|
| this.insideSetSearchText_ = true;
|
|
|