| Index: chrome/renderer/chrome_render_view_observer.cc
 | 
| diff --git a/chrome/renderer/chrome_render_view_observer.cc b/chrome/renderer/chrome_render_view_observer.cc
 | 
| index 848cc5561b2095f2cdc73ff3a79506f0f6db80e7..f65b5334a6be8e2726edc2c99e7699102d486e82 100644
 | 
| --- a/chrome/renderer/chrome_render_view_observer.cc
 | 
| +++ b/chrome/renderer/chrome_render_view_observer.cc
 | 
| @@ -971,8 +971,8 @@ void ChromeRenderViewObserver::CaptureText(WebFrame* frame,
 | 
|    // partial word indexed at the end that might have been clipped. Therefore,
 | 
|    // terminate the string at the last space to ensure no words are clipped.
 | 
|    if (contents->size() == kMaxIndexChars) {
 | 
| -    size_t last_space_index = contents->find_last_of(kWhitespaceUTF16);
 | 
| -    if (last_space_index == std::wstring::npos)
 | 
| +    size_t last_space_index = contents->find_last_of(base::kWhitespaceUTF16);
 | 
| +    if (last_space_index == base::string16::npos)
 | 
|        return;  // don't index if we got a huge block of text with no spaces
 | 
|      contents->resize(last_space_index);
 | 
|    }
 | 
| 
 |