OLD | NEW |
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/chromeos/extensions/file_browser_private_api.h" | 5 #include "chrome/browser/chromeos/extensions/file_browser_private_api.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1481 | 1481 |
1482 dict->SetString("PDF_VIEW_ENABLED", | 1482 dict->SetString("PDF_VIEW_ENABLED", |
1483 file_manager_util::ShouldBeOpenedWithPdfPlugin(".pdf") ? | 1483 file_manager_util::ShouldBeOpenedWithPdfPlugin(".pdf") ? |
1484 "true" : "false"); | 1484 "true" : "false"); |
1485 | 1485 |
1486 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); | 1486 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); |
1487 | 1487 |
1488 if (gdata::util::IsGDataAvailable(profile_)) | 1488 if (gdata::util::IsGDataAvailable(profile_)) |
1489 dict->SetString("ENABLE_GDATA", "1"); | 1489 dict->SetString("ENABLE_GDATA", "1"); |
1490 | 1490 |
| 1491 #if defined(USE_ASH) |
| 1492 dict->SetString("ASH", "1"); |
| 1493 #endif |
| 1494 |
1491 return true; | 1495 return true; |
1492 } | 1496 } |
1493 | 1497 |
1494 GetGDataFilePropertiesFunction::GetGDataFilePropertiesFunction() { | 1498 GetGDataFilePropertiesFunction::GetGDataFilePropertiesFunction() { |
1495 } | 1499 } |
1496 | 1500 |
1497 GetGDataFilePropertiesFunction::~GetGDataFilePropertiesFunction() { | 1501 GetGDataFilePropertiesFunction::~GetGDataFilePropertiesFunction() { |
1498 } | 1502 } |
1499 | 1503 |
1500 void GetGDataFilePropertiesFunction::DoOperation( | 1504 void GetGDataFilePropertiesFunction::DoOperation( |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1972 if (value->GetBoolean("cellularDisabled", &tmp)) { | 1976 if (value->GetBoolean("cellularDisabled", &tmp)) { |
1973 service->SetBoolean(prefs::kDisableGDataOverCellular, tmp); | 1977 service->SetBoolean(prefs::kDisableGDataOverCellular, tmp); |
1974 } | 1978 } |
1975 | 1979 |
1976 if (value->GetBoolean("hostedFilesDisabled", &tmp)) { | 1980 if (value->GetBoolean("hostedFilesDisabled", &tmp)) { |
1977 service->SetBoolean(prefs::kDisableGDataHostedFiles, tmp); | 1981 service->SetBoolean(prefs::kDisableGDataHostedFiles, tmp); |
1978 } | 1982 } |
1979 | 1983 |
1980 return true; | 1984 return true; |
1981 } | 1985 } |
OLD | NEW |