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

Side by Side Diff: chrome/browser/chromeos/first_run/drive_first_run_controller.cc

Issue 83413004: Remove enable Drive offline system tray UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drive settings Created 7 years, 1 month 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 | « ash/system/tray/system_tray_notifier.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/first_run/drive_first_run_controller.h" 5 #include "chrome/browser/chromeos/first_run/drive_first_run_controller.h"
6 6
7 #include "ash/shell.h"
8 #include "ash/system/tray/system_tray_notifier.h"
9 #include "base/callback.h" 7 #include "base/callback.h"
10 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
11 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
12 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/background/background_contents_service.h" 11 #include "chrome/browser/background/background_contents_service.h"
14 #include "chrome/browser/background/background_contents_service_factory.h" 12 #include "chrome/browser/background/background_contents_service_factory.h"
15 #include "chrome/browser/chrome_notification_types.h" 13 #include "chrome/browser/chrome_notification_types.h"
16 #include "chrome/browser/chromeos/login/user_manager.h" 14 #include "chrome/browser/chromeos/login/user_manager.h"
17 #include "chrome/browser/extensions/extension_service.h" 15 #include "chrome/browser/extensions/extension_service.h"
18 #include "chrome/browser/extensions/extension_system.h" 16 #include "chrome/browser/extensions/extension_system.h"
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 void DriveFirstRunController::CleanUp() { 369 void DriveFirstRunController::CleanUp() {
372 if (web_contents_manager_) 370 if (web_contents_manager_)
373 web_contents_manager_->StopLoad(); 371 web_contents_manager_->StopLoad();
374 web_contents_timer_.Stop(); 372 web_contents_timer_.Stop();
375 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); 373 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
376 } 374 }
377 375
378 void DriveFirstRunController::OnOfflineInit(bool success) { 376 void DriveFirstRunController::OnOfflineInit(bool success) {
379 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 377 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
380 if (success) { 378 if (success) {
381 ash::Shell::GetInstance()->system_tray_notifier() 379 // TODO(tengs): Show non-toast notification that offline files will now
382 ->NotifyDriveOfflineEnabled(); 380 // be synced.
383 } 381 }
384 FOR_EACH_OBSERVER(Observer, observer_list_, OnCompletion(success)); 382 FOR_EACH_OBSERVER(Observer, observer_list_, OnCompletion(success));
385 CleanUp(); 383 CleanUp();
386 } 384 }
387 385
388 } // namespace chromeos 386 } // namespace chromeos
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_notifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698