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

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: @r202870 Created 7 years, 6 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
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 base::FilePath::StringType(), 1252 base::FilePath::StringType(),
1253 web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(), 1253 web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(),
1254 NULL); 1254 NULL);
1255 } 1255 }
1256 1256
1257 void BrowserOptionsHandler::FileSelected(const base::FilePath& path, int index, 1257 void BrowserOptionsHandler::FileSelected(const base::FilePath& path, int index,
1258 void* params) { 1258 void* params) {
1259 content::RecordAction(UserMetricsAction("Options_SetDownloadDirectory")); 1259 content::RecordAction(UserMetricsAction("Options_SetDownloadDirectory"));
1260 PrefService* pref_service = Profile::FromWebUI(web_ui())->GetPrefs(); 1260 PrefService* pref_service = Profile::FromWebUI(web_ui())->GetPrefs();
1261 pref_service->SetFilePath(prefs::kDownloadDefaultDirectory, path); 1261 pref_service->SetFilePath(prefs::kDownloadDefaultDirectory, path);
1262 pref_service->SetFilePath(prefs::kSaveFileDefaultDirectory, path);
1262 } 1263 }
1263 1264
1264 void BrowserOptionsHandler::OnCloudPrintSetupClosed() { 1265 void BrowserOptionsHandler::OnCloudPrintSetupClosed() {
1265 #if !defined(OS_CHROMEOS) 1266 #if !defined(OS_CHROMEOS)
1266 if (cloud_print_connector_ui_enabled_) 1267 if (cloud_print_connector_ui_enabled_)
1267 SetupCloudPrintConnectorSection(); 1268 SetupCloudPrintConnectorSection();
1268 #endif 1269 #endif
1269 } 1270 }
1270 1271
1271 #if defined(OS_CHROMEOS) 1272 #if defined(OS_CHROMEOS)
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 base::FundamentalValue disabled(profile_pref_registrar_.IsManaged() || 1587 base::FundamentalValue disabled(profile_pref_registrar_.IsManaged() ||
1587 is_extension_controlled); 1588 is_extension_controlled);
1588 base::FundamentalValue extension_controlled(is_extension_controlled); 1589 base::FundamentalValue extension_controlled(is_extension_controlled);
1589 web_ui()->CallJavascriptFunction("BrowserOptions.setupProxySettingsSection", 1590 web_ui()->CallJavascriptFunction("BrowserOptions.setupProxySettingsSection",
1590 disabled, extension_controlled); 1591 disabled, extension_controlled);
1591 1592
1592 #endif // !defined(OS_CHROMEOS) 1593 #endif // !defined(OS_CHROMEOS)
1593 } 1594 }
1594 1595
1595 } // namespace options 1596 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698