summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/browser.cc3
-rw-r--r--chrome/browser/browser_commands.cc8
2 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 72f5afd..be59357 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -863,9 +863,6 @@ void Browser::UpdateNavigationCommands() {
controller_.UpdateCommandEnabled(IDC_PRINT, web_contents != NULL);
controller_.UpdateCommandEnabled(IDC_DUPLICATE,
CanDuplicateContentsAt(selected_index()));
-
- controller_.UpdateCommandEnabled(IDC_GOOFFTHERECORD,
- profile_->GetOffTheRecordProfile() != profile_);
}
// Notification that the starredness of a tab changed.
diff --git a/chrome/browser/browser_commands.cc b/chrome/browser/browser_commands.cc
index 974a4f3..2489b9d 100644
--- a/chrome/browser/browser_commands.cc
+++ b/chrome/browser/browser_commands.cc
@@ -144,7 +144,7 @@ void Browser::InitCommandState() {
controller_.UpdateCommandEnabled(IDC_PRINT, true);
controller_.UpdateCommandEnabled(IDC_COPY_URL, true);
controller_.UpdateCommandEnabled(IDC_DUPLICATE, true);
- controller_.UpdateCommandEnabled(IDC_GOOFFTHERECORD, false);
+ controller_.UpdateCommandEnabled(IDC_GOOFFTHERECORD, true);
controller_.UpdateCommandEnabled(IDC_VIEW_PASSWORDS, true);
controller_.UpdateCommandEnabled(IDC_IMPORT_SETTINGS, true);
controller_.UpdateCommandEnabled(IDC_CLEAR_BROWSING_DATA, true);
@@ -357,7 +357,8 @@ void Browser::ExecuteCommand(int id) {
case IDC_NEWWINDOW:
UserMetrics::RecordAction(L"NewWindow", profile_);
- Browser::OpenNewBrowserWindow(profile_, SW_SHOWNORMAL);
+ Browser::OpenNewBrowserWindow(profile_->GetOriginalProfile(),
+ SW_SHOWNORMAL);
break;
case IDC_CLOSEWINDOW:
@@ -523,7 +524,8 @@ void Browser::ExecuteCommand(int id) {
}
case IDC_GOOFFTHERECORD: {
- Browser::OpenURLOffTheRecord(profile_, NewTabUIURL());
+ Browser::OpenNewBrowserWindow(profile_->GetOffTheRecordProfile(),
+ SW_SHOWNORMAL);
break;
}