| Index: chrome/browser/cocoa/find_bar_cocoa_controller.mm
|
| ===================================================================
|
| --- chrome/browser/cocoa/find_bar_cocoa_controller.mm (revision 39898)
|
| +++ chrome/browser/cocoa/find_bar_cocoa_controller.mm (working copy)
|
| @@ -7,6 +7,7 @@
|
| #include "base/mac_util.h"
|
| #include "base/sys_string_conversions.h"
|
| #include "chrome/browser/find_bar_controller.h"
|
| +#include "chrome/browser/profile.h"
|
| #include "chrome/browser/cocoa/browser_window_cocoa.h"
|
| #import "chrome/browser/cocoa/find_bar_cocoa_controller.h"
|
| #import "chrome/browser/cocoa/find_bar_bridge.h"
|
| @@ -127,10 +128,14 @@
|
| return;
|
|
|
| NSString* findText = [findText_ stringValue];
|
| - suppressPboardUpdateActions_ = YES;
|
| - [[FindPasteboard sharedInstance] setFindText:findText];
|
| - suppressPboardUpdateActions_ = NO;
|
|
|
| + // Do not update the find pasteboard if in Incognito mode.
|
| + if (!tab_contents->profile()->IsOffTheRecord()) {
|
| + suppressPboardUpdateActions_ = YES;
|
| + [[FindPasteboard sharedInstance] setFindText:findText];
|
| + suppressPboardUpdateActions_ = NO;
|
| + }
|
| +
|
| if ([findText length] > 0) {
|
| tab_contents->StartFinding(base::SysNSStringToUTF16(findText), true, false);
|
| } else {
|
|
|