| 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 /** |     5 /** | 
|     6  * FileManager constructor. |     6  * FileManager constructor. | 
|     7  * |     7  * | 
|     8  * FileManager objects encapsulate the functionality of the file selector |     8  * FileManager objects encapsulate the functionality of the file selector | 
|     9  * dialogs, as well as the full screen file manager application (though the |     9  * dialogs, as well as the full screen file manager application (though the | 
|    10  * latter is not yet implemented). |    10  * latter is not yet implemented). | 
| (...skipping 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2807       if (self.isGDataEnabled()) |  2807       if (self.isGDataEnabled()) | 
|  2808         self.setupGDataWelcome_(); |  2808         self.setupGDataWelcome_(); | 
|  2809       else |  2809       else | 
|  2810         self.cleanupGDataWelcome_(); |  2810         self.cleanupGDataWelcome_(); | 
|  2811  |  2811  | 
|  2812       if (gdata.cellularDisabled) |  2812       if (gdata.cellularDisabled) | 
|  2813         self.syncButton.setAttribute('checked', ''); |  2813         self.syncButton.setAttribute('checked', ''); | 
|  2814       else |  2814       else | 
|  2815         self.syncButton.removeAttribute('checked'); |  2815         self.syncButton.removeAttribute('checked'); | 
|  2816  |  2816  | 
 |  2817       if (self.hostedButton.hasAttribute('checked') != | 
 |  2818           gdata.hostedFilesDisabled && self.isOnGData()) { | 
 |  2819         self.directoryModel_.rescan(); | 
 |  2820       } | 
 |  2821  | 
|  2817       if (!gdata.hostedFilesDisabled) |  2822       if (!gdata.hostedFilesDisabled) | 
|  2818         self.hostedButton.setAttribute('checked', ''); |  2823         self.hostedButton.setAttribute('checked', ''); | 
|  2819       else |  2824       else | 
|  2820         self.hostedButton.removeAttribute('checked'); |  2825         self.hostedButton.removeAttribute('checked'); | 
|  2821  |  2826  | 
|  2822       if (network.online) { |  2827       if (network.online) { | 
|  2823         if (gdata.cellularDisabled && network.type == 'cellular') |  2828         if (gdata.cellularDisabled && network.type == 'cellular') | 
|  2824           self.dialogContainer_.setAttribute('connection', 'metered'); |  2829           self.dialogContainer_.setAttribute('connection', 'metered'); | 
|  2825         else |  2830         else | 
|  2826           self.dialogContainer_.removeAttribute('connection'); |  2831           self.dialogContainer_.removeAttribute('connection'); | 
| (...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4576     function closeBanner() { |  4581     function closeBanner() { | 
|  4577       self.cleanupGDataWelcome_(); |  4582       self.cleanupGDataWelcome_(); | 
|  4578       // Stop showing the welcome banner. |  4583       // Stop showing the welcome banner. | 
|  4579       localStorage[WELCOME_HEADER_COUNTER_KEY] = WELCOME_HEADER_COUNTER_LIMIT; |  4584       localStorage[WELCOME_HEADER_COUNTER_KEY] = WELCOME_HEADER_COUNTER_LIMIT; | 
|  4580     } |  4585     } | 
|  4581  |  4586  | 
|  4582     return maybeShowBanner; |  4587     return maybeShowBanner; | 
|  4583   }; |  4588   }; | 
|  4584 })(); |  4589 })(); | 
|  4585  |  4590  | 
| OLD | NEW |