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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_event_router.cc

Issue 10837338: Remove "GData" prefix from non-GData specific classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 4 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
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/chromeos/extensions/file_browser_event_router.h" 5 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 *pref_name == prefs::kDisableGDataHostedFiles || 406 *pref_name == prefs::kDisableGDataHostedFiles ||
407 *pref_name == prefs::kDisableGData) { 407 *pref_name == prefs::kDisableGData) {
408 profile_->GetExtensionEventRouter()->DispatchEventToRenderers( 408 profile_->GetExtensionEventRouter()->DispatchEventToRenderers(
409 extensions::event_names::kOnFileBrowserGDataPreferencesChanged, 409 extensions::event_names::kOnFileBrowserGDataPreferencesChanged,
410 scoped_ptr<ListValue>(new ListValue()), NULL, GURL()); 410 scoped_ptr<ListValue>(new ListValue()), NULL, GURL());
411 } 411 }
412 } 412 }
413 } 413 }
414 414
415 void FileBrowserEventRouter::OnProgressUpdate( 415 void FileBrowserEventRouter::OnProgressUpdate(
416 const std::vector<gdata::GDataOperationRegistry::ProgressStatus>& list) { 416 const std::vector<gdata::OperationRegistry::ProgressStatus>& list) {
417 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 417 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
418 418
419 scoped_ptr<ListValue> event_list( 419 scoped_ptr<ListValue> event_list(
420 file_manager_util::ProgressStatusVectorToListValue( 420 file_manager_util::ProgressStatusVectorToListValue(
421 profile_, 421 profile_,
422 file_manager_util::GetFileBrowserExtensionUrl().GetOrigin(), 422 file_manager_util::GetFileBrowserExtensionUrl().GetOrigin(),
423 list)); 423 list));
424 424
425 scoped_ptr<ListValue> args(new ListValue()); 425 scoped_ptr<ListValue> args(new ListValue());
426 args->Append(event_list.release()); 426 args->Append(event_list.release());
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 return scoped_refptr<RefcountedProfileKeyedService>( 861 return scoped_refptr<RefcountedProfileKeyedService>(
862 new FileBrowserEventRouter(profile)); 862 new FileBrowserEventRouter(profile));
863 } 863 }
864 864
865 bool FileBrowserEventRouterFactory::ServiceHasOwnInstanceInIncognito() { 865 bool FileBrowserEventRouterFactory::ServiceHasOwnInstanceInIncognito() {
866 // Explicitly and always allow this router in guest login mode. see 866 // Explicitly and always allow this router in guest login mode. see
867 // chrome/browser/profiles/profile_keyed_base_factory.h comment 867 // chrome/browser/profiles/profile_keyed_base_factory.h comment
868 // for the details. 868 // for the details.
869 return true; 869 return true;
870 } 870 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698