Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 12662032: Merge SavePackageFilePicker{,ChromeOS} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r198452 Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/browser_options_handler.h" 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 base::FilePath::StringType(), 1218 base::FilePath::StringType(),
1219 web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(), 1219 web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(),
1220 NULL); 1220 NULL);
1221 } 1221 }
1222 1222
1223 void BrowserOptionsHandler::FileSelected(const base::FilePath& path, int index, 1223 void BrowserOptionsHandler::FileSelected(const base::FilePath& path, int index,
1224 void* params) { 1224 void* params) {
1225 content::RecordAction(UserMetricsAction("Options_SetDownloadDirectory")); 1225 content::RecordAction(UserMetricsAction("Options_SetDownloadDirectory"));
1226 PrefService* pref_service = Profile::FromWebUI(web_ui())->GetPrefs(); 1226 PrefService* pref_service = Profile::FromWebUI(web_ui())->GetPrefs();
1227 pref_service->SetFilePath(prefs::kDownloadDefaultDirectory, path); 1227 pref_service->SetFilePath(prefs::kDownloadDefaultDirectory, path);
1228 pref_service->SetFilePath(prefs::kSaveFileDefaultDirectory, path);
1228 } 1229 }
1229 1230
1230 void BrowserOptionsHandler::OnCloudPrintSetupClosed() { 1231 void BrowserOptionsHandler::OnCloudPrintSetupClosed() {
1231 #if !defined(OS_CHROMEOS) 1232 #if !defined(OS_CHROMEOS)
1232 if (cloud_print_connector_ui_enabled_) 1233 if (cloud_print_connector_ui_enabled_)
1233 SetupCloudPrintConnectorSection(); 1234 SetupCloudPrintConnectorSection();
1234 #endif 1235 #endif
1235 } 1236 }
1236 1237
1237 #if defined(OS_CHROMEOS) 1238 #if defined(OS_CHROMEOS)
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1525 base::FundamentalValue disabled(profile_pref_registrar_.IsManaged() || 1526 base::FundamentalValue disabled(profile_pref_registrar_.IsManaged() ||
1526 is_extension_controlled); 1527 is_extension_controlled);
1527 base::FundamentalValue extension_controlled(is_extension_controlled); 1528 base::FundamentalValue extension_controlled(is_extension_controlled);
1528 web_ui()->CallJavascriptFunction("BrowserOptions.setupProxySettingsSection", 1529 web_ui()->CallJavascriptFunction("BrowserOptions.setupProxySettingsSection",
1529 disabled, extension_controlled); 1530 disabled, extension_controlled);
1530 1531
1531 #endif // !defined(OS_CHROMEOS) 1532 #endif // !defined(OS_CHROMEOS)
1532 } 1533 }
1533 1534
1534 } // namespace options 1535 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698