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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1495 | 1495 |
1496 dict->SetString("PDF_VIEW_ENABLED", | 1496 dict->SetString("PDF_VIEW_ENABLED", |
1497 file_manager_util::ShouldBeOpenedWithPdfPlugin(".pdf") ? | 1497 file_manager_util::ShouldBeOpenedWithPdfPlugin(".pdf") ? |
1498 "true" : "false"); | 1498 "true" : "false"); |
1499 | 1499 |
1500 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); | 1500 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); |
1501 | 1501 |
1502 if (gdata::util::IsGDataAvailable(profile_)) | 1502 if (gdata::util::IsGDataAvailable(profile_)) |
1503 dict->SetString("ENABLE_GDATA", "1"); | 1503 dict->SetString("ENABLE_GDATA", "1"); |
1504 | 1504 |
| 1505 #if defined(USE_ASH) |
| 1506 dict->SetString("ASH", "1"); |
| 1507 #endif |
| 1508 |
1505 return true; | 1509 return true; |
1506 } | 1510 } |
1507 | 1511 |
1508 GetGDataFilePropertiesFunction::GetGDataFilePropertiesFunction() { | 1512 GetGDataFilePropertiesFunction::GetGDataFilePropertiesFunction() { |
1509 } | 1513 } |
1510 | 1514 |
1511 GetGDataFilePropertiesFunction::~GetGDataFilePropertiesFunction() { | 1515 GetGDataFilePropertiesFunction::~GetGDataFilePropertiesFunction() { |
1512 } | 1516 } |
1513 | 1517 |
1514 void GetGDataFilePropertiesFunction::DoOperation( | 1518 void GetGDataFilePropertiesFunction::DoOperation( |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1986 if (value->GetBoolean("cellularDisabled", &tmp)) { | 1990 if (value->GetBoolean("cellularDisabled", &tmp)) { |
1987 service->SetBoolean(prefs::kDisableGDataOverCellular, tmp); | 1991 service->SetBoolean(prefs::kDisableGDataOverCellular, tmp); |
1988 } | 1992 } |
1989 | 1993 |
1990 if (value->GetBoolean("hostedFilesDisabled", &tmp)) { | 1994 if (value->GetBoolean("hostedFilesDisabled", &tmp)) { |
1991 service->SetBoolean(prefs::kDisableGDataHostedFiles, tmp); | 1995 service->SetBoolean(prefs::kDisableGDataHostedFiles, tmp); |
1992 } | 1996 } |
1993 | 1997 |
1994 return true; | 1998 return true; |
1995 } | 1999 } |
OLD | NEW |